public HomeController(ILogger <HomeController> logger, UserManager <Worker> userManager, SignInManager <Worker> signInManager, journalContext context)
 {
     _logger        = logger;
     _userManager   = userManager;
     _signInManager = signInManager;
     db             = context;
 }
 public UsersController(UserManager <Worker> userManager, SignInManager <Worker> signInManager, RoleManager <Role> roleManager, journalContext context)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _roleManager   = roleManager;
     db             = context;
 }
 public EventsController(UserManager <Worker> userManager, journalContext context)
 {
     _userManager = userManager;
     db           = context;
 }
 public void FillLists(journalContext context)
 {
     Subunits = new SelectList(context.Subunits.ToList(), "Id", "Name");
     Sectors  = context.Sectors.ToList();
 }
 public CreateUserViewModel(journalContext context)
 {
     FillLists(context);
 }
Example #6
0
 public EditUserViewModel(journalContext context)
 {
     FillLists(context);
 }
 public CreateCheckViewModel(journalContext context)
 {
     FillLists(context);
 }
 public ReportController(journalContext context)
 {
     db = context;
 }