예제 #1
0
 public ReportsController(IUnitOfWork unitOfWork)
 {
     _uow         = unitOfWork;
     _reportRepo  = unitOfWork.ReportRepository;
     _actionRepo  = unitOfWork.ActionRepository;
     _leadAssRepo = unitOfWork.LeadAssignmentRepository;
 }
예제 #2
0
        public LeadAssignmentsController(IUnitOfWork unitOfWork, IEmailSender emailSender
                                         , MessageController messageController, LeadsController leadsController
                                         , UserManager <ApplicationUser> userManager, RoleManager <ApplicationRole> roleManager, SignInManager <ApplicationUser> signInManager)
        {
            _uow                  = unitOfWork;
            _leadAssRepo          = unitOfWork.LeadAssignmentRepository;
            _leadRepo             = unitOfWork.LeadRepository;
            _salesRepo            = unitOfWork.SalesPersonRepository;
            _actionPermissionRepo = unitOfWork.ActionRepository;

            _emailSender       = emailSender;
            _messageController = messageController;
            _leadsController   = leadsController;
            _accountManager    = new AccountManager(userManager, roleManager, signInManager, emailSender);
        }