public CustomersController(TowerScaffoldingContext context) { _context = context; }
public TasksController(TowerScaffoldingContext context) { _context = context; }
public ProjectsController(TowerScaffoldingContext context) { _context = context; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public async void Configure(IApplicationBuilder app, IHostingEnvironment env, TowerScaffoldingContext context, IServiceProvider serviceProvider, ApplicationDbContext apContext, UserManager <ApplicationUser> userManager) { //Enable Session app.UseSession(); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); app.UseDatabaseErrorPage(); } else { app.UseExceptionHandler("/Home/Error"); app.UseHsts(); } app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseCookiePolicy(); app.UseAuthentication(); app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); }); //CreateRoles(serviceProvider).Wait(); }
public DayWorksController(TowerScaffoldingContext context) { _context = context; }
public LeadingHandsController(TowerScaffoldingContext context) { _context = context; }