public RoleRepository(TWorkDbContext ctx) { _ctx = ctx; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, UserManager <USER> userManager, TWorkDbContext ctx) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); app.UseStatusCodePages(); TWorkDbInitializer.SeedUser(userManager); TWorkDbInitializer.SeedData(ctx); } app.UseStaticFiles(); app.UseStatusCodePages(async context => { if (context.HttpContext.Response.StatusCode == 403) { context.HttpContext.Response.Redirect("Account/AccessDenied"); } }); app.UseAuthentication(); app.UseSession(); app.UseMvc(options => options.MapRoute("default", "{controller=Home}/{action=Index}/{id?}")); }
public TeamRepository(TWorkDbContext ctx) { _ctx = ctx; }
public CommentRepository(TWorkDbContext ctx) { _ctx = ctx; }
public UserRepository(TWorkDbContext context, UserManager <USER> userManager, SignInManager <USER> signInManager) { _ctx = context; _userManager = userManager; _signInManager = signInManager; }
public MessageRepository(TWorkDbContext ctx) { _ctx = ctx; }