public LoginController(PayRollDbContext db, SignInManager <Worker> signInManager, UserManager <Worker> userManager, RoleManager <IdentityRole> roleManager) { _db = db; _userManager = userManager; _roleManager = roleManager; _signInManager = signInManager; }
public static void Main(string[] args) { IWebHost webHost = CreateWebHostBuilder(args).Build(); using (IServiceScope serviceScope = webHost.Services.CreateScope()) { using (PayRollDbContext dbContext = serviceScope.ServiceProvider.GetRequiredService <PayRollDbContext>()) { using (UserManager <Worker> userManager = serviceScope.ServiceProvider.GetRequiredService <UserManager <Worker> >()) { using (RoleManager <IdentityRole> roleManager = serviceScope.ServiceProvider.GetRequiredService <RoleManager <IdentityRole> >()) { DefaultDbData.Seed(dbContext, userManager, roleManager); } } } } webHost.Run(); }
public WorkerJobInfoController(PayRollDbContext db) { _db = db; }
public CityController(PayRollDbContext db) { _db = db; }
public ShopController(PayRollDbContext db) { _db = db; }
public DepartmentController(PayRollDbContext db) { _db = db; }
public WorkerController(PayRollDbContext db, SignInManager <Worker> signInManager, UserManager <Worker> userManger) { _db = db; _userManger = userManger; _signInManager = signInManager; }
public CompanyController(PayRollDbContext db) { _db = db; }
public AppsentReasonController(PayRollDbContext db) { _db = db; }
public WorkerSalaryInfoController(PayRollDbContext db) { _db = db; }
public BonusController(PayRollDbContext db) { _db = db; }
public ProfessionController(PayRollDbContext db) { _db = db; }