Beispiel #1
0
        public MessageController(IUnitOfWork unitOfWork, IEmailSender emailSender
                                 , UserManager <ApplicationUser> userManager, RoleManager <ApplicationRole> roleManager, SignInManager <ApplicationUser> signInManager)
        {
            _uow                = unitOfWork;
            _companyRepo        = unitOfWork.CompanyRepository;
            _msgRepo            = unitOfWork.MessageRepository;
            _partnerRepo        = unitOfWork.PartnerRepository;
            _leadRepo           = unitOfWork.LeadRepository;
            _leadAssignmentRepo = unitOfWork.LeadAssignmentRepository;
            _leadTypeRepo       = unitOfWork.LeadTypeRepository;

            _emailSender    = emailSender;
            _accountManager = new AccountManager(userManager, roleManager, signInManager, emailSender);
        }
 public PartnerBranchesController(IUnitOfWork unitOfWork)
 {
     _uow = unitOfWork;
     _partnerBranchRepo = _uow.PartnerBranchRepository;
     _leadAssRepo       = _uow.LeadAssignmentRepository;
 }