Use AddMvcWithDefaultRoute()

This commit is contained in:
Henk Mollema 2015-06-03 09:29:45 +02:00
parent 9f3655a835
commit 256201ac46
1 changed files with 1 additions and 4 deletions

View File

@ -14,10 +14,7 @@ namespace HelloMvc
{
app.UseErrorPage();
app.UseMvc(routes =>
{
routes.MapRoute("default", "{controller=Home}/{action=Index}/{id?}");
});
app.UseMvcWithDefaultRoute();
app.UseWelcomePage();
}