File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ public static IApplicationBuilder UseMvcWithAreas(this IApplicationBuilder app)
27
27
name : "areas" ,
28
28
pattern : "{area:exists}/{controller=Home}/{action=Index}/{id?}"
29
29
) ;
30
+
31
+ routes . MapRazorPages ( ) ;
30
32
} ) ;
31
33
32
34
public static async Task < IApplicationBuilder > SeedDataAsync ( this IApplicationBuilder app )
Original file line number Diff line number Diff line change @@ -61,9 +61,11 @@ public void ConfigureServices(IServiceCollection services)
61
61
. AddTransient < IDateTimeProvider , DateTimeProvider > ( ) ;
62
62
63
63
services
64
- . AddMvc ( options => options
64
+ . AddControllersWithViews ( options => options
65
65
. AddAutoValidateAntiforgeryToken ( ) )
66
66
. SetCompatibilityVersion ( CompatibilityVersion . Version_3_0 ) ;
67
+
68
+ services . AddRazorPages ( ) ;
67
69
}
68
70
69
71
public void Configure ( IApplicationBuilder app , IWebHostEnvironment env )
You can’t perform that action at this time.
0 commit comments