Пример #1
0
 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;
 }
Пример #2
0
 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;
 }
Пример #3
0
        /* 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;*/
        }
Пример #4
0
 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;
 }
Пример #6
0
 public ViewBid(IBidRepo repo, UserManager <UserIdentity> usrMgr)
 {
     repository  = repo;
     userManager = usrMgr;
 }