Exemplo n.º 1
0
        // 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;
 }
Exemplo n.º 3
0
 public StudentsController(ExamManagementContext context, ExamManagementContextSeedData seeder)
 {
     _context = context;
     _seeder  = seeder;
 }