Example #1
0
 public AdminController(BWDbContext cotext, UserManager <ApplicationUser> userManager,
                        RoleManager <IdentityRole> rolMgr,
                        SignInManager <ApplicationUser> signInManager)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _roleManager   = rolMgr;
     _cotext        = cotext;
 }
Example #2
0
 public LoginController(IConfiguration config, UserManager <ApplicationUser> userManager,
                        SignInManager <ApplicationUser> signInManager,
                        IMapper mapper,
                        //RoleManager<IdentityRole> rolMgr,
                        BWDbContext context)
 {
     _config        = config;
     _userManager   = userManager;
     _signInManager = signInManager;
     _mapper        = mapper;
     //_roleManager = rolMgr;
     db = context;
 }
 public DashboardController(BWDbContext context)
 {
     db = context;
     beneficiaryRepositor = new BeneficiaryRepository(db);
 }
Example #4
0
 public BeneficiaryRepository(BWDbContext context)
 {
     db = context;
 }
Example #5
0
 public LookupController(BWDbContext context)
 {
     db = context;
 }
 public BeneficiaryController(BWDbContext context, IMapper mapper)
 {
     db      = context;
     _mapper = mapper;
 }