// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public async void Configure(IApplicationBuilder app, ExamManagementContextSeedData seeder) { app.UseStaticFiles(); app.UseIdentity(); app.UseDeveloperExceptionPage(); app.UseMvc(config => { config.MapRoute( name: "Default", template: "{controller}/{action}/{id?}", defaults: new { controller = "App", action = "Index" } ); }); await seeder.EnsureSeedDataAsync(); }
public FacultyController(ExamManagementContext context, ExamManagementContextSeedData seeder) { _context = context; _seeder = seeder; }
public StudentsController(ExamManagementContext context, ExamManagementContextSeedData seeder) { _context = context; _seeder = seeder; }