public ProjectController(ApplicationDbContext ctx, IProjectRepo projRepo, IClientRepo cliRepo, IBidRepo bdRepo, UserManager <UserIdentity> usrMgr, SignInManager <UserIdentity> signInMgr) { context = ctx; projectRepo = projRepo; clientRepo = cliRepo; bidrepo = bdRepo; userManager = usrMgr; signInManager = signInMgr; }
public UserController(IProjectRepo prRepo, IBidRepo bRepo, IInvoiceRepo invRepo, IUserRepo usrRepo, RoleManager <IdentityRole> roleMgr, UserManager <UserIdentity> usrMgr, SignInManager <UserIdentity> sim, IClientRepo clRepo) { userManager = usrMgr; signInManager = sim; roleManager = roleMgr; clientRepo = clRepo; userRepo = usrRepo; invoiceRepo = invRepo; bidRepo = bRepo; projectRepo = prRepo; }
/* private IUserValidator<UserIdentity> userValidator; * private IPasswordValidator<UserIdentity> passwordValidator; * private IPasswordHasher<UserIdentity> passwordHasher;*/ public AdminController(RoleManager <IdentityRole> roleMgr, UserManager <UserIdentity> usrMgr, IReviewRepo repo, IBidRequestRepo brrepo, IBidRepo bidrepo, ApplicationDbContext Context) { userManager = usrMgr; roleManager = roleMgr; reviewRepo = repo; brRepo = brrepo; bidRepo = bidrepo; context = Context; /*userValidator = userValid; * passwordValidator = passValid; * passwordHasher = passwordHash;*/ }
public UnitOfWork( AuctionDbContext dbContext, IBidRepo bidRepo, ICategoryRepo categoryRepo, IItemRepo itemRepo, IOrderRepo orderRepo, IPaymentRepo paymentRepo ) { _dbContext = dbContext; _bidRepo = bidRepo; _categoryRepo = categoryRepo; _itemRepo = itemRepo; _orderRepo = orderRepo; _paymentRepo = paymentRepo; }
public BidRequestController(UserManager <UserIdentity> userMgr, IBidRequestRepo repo, IBidRepo bRepo) { bidReqRepo = repo; bidRepo = bRepo; UserManager = userMgr; }
public ViewBid(IBidRepo repo, UserManager <UserIdentity> usrMgr) { repository = repo; userManager = usrMgr; }