Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static IApplicationBuilder UseMvcWithDefaultRoute(this IApplicationBuilder app)
- {
- if (app == null)
- {
- throw new ArgumentNullException(nameof(app));
- }
- return app.UseMvc(routes =>
- {
- routes.MapRoute(
- name: "default",
- template: "{controller=Home}/{action=Index}/{id?}");
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement