public CustomersController(TowerScaffoldingContext context)
 {
     _context = context;
 }
示例#2
0
 public TasksController(TowerScaffoldingContext context)
 {
     _context = context;
 }
示例#3
0
 public ProjectsController(TowerScaffoldingContext context)
 {
     _context = context;
 }
示例#4
0
        // 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;
 }
示例#6
0
 public LeadingHandsController(TowerScaffoldingContext context)
 {
     _context = context;
 }