Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public static IApplicationBuilder UseMvcWithDefaultRoute(this IApplicationBuilder app)
  2. {
  3. if (app == null)
  4. {
  5. throw new ArgumentNullException(nameof(app));
  6. }
  7.  
  8. return app.UseMvc(routes =>
  9. {
  10. routes.MapRoute(
  11. name: "default",
  12. template: "{controller=Home}/{action=Index}/{id?}");
  13. });
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement