public UserReferralController(IUserReferralService userReferralService, IMapper mapper, IEmailService emailService, IWebHostEnvironment env, IConfiguration configuration)
 {
     _userReferralService = userReferralService ?? throw new ArgumentNullException(nameof(userReferralService));
     _mapper        = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _env           = env ?? throw new ArgumentNullException(nameof(env));
     _emailService  = emailService ?? throw new ArgumentNullException(nameof(emailService));
     _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
 }
        public UserInvitationController(IUserReferralService UserRefService, IExceptionHandlingService exec, IEmployeeService empService)
        {
            _UserReferralService = UserRefService;
            _employeeService     = empService;
            _exception           = exec;

            //Log Initialization
            LogVm.SessionId      = 0;
            LogVm.ControllerName = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("controller");
            LogVm.ActionName     = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("action");
            LogVm.User           = System.Web.HttpContext.Current.Request.RequestContext.HttpContext.User.Identity.Name;
        }
예제 #3
0
 public AccountController(IAccountService accountService, IMapper mapper, IEmailService emailService, IWebHostEnvironment env,
                          IHubContext <UserHub> hub, IUserReferralService userReferralService, IRewardHelper rewardHelper, IUserService userService, IProfileHelthHelper profileHelthHelper)
 {
     _accountService      = accountService ?? throw new ArgumentNullException(nameof(accountService));
     _mapper              = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _env                 = env ?? throw new ArgumentNullException(nameof(env));
     _emailService        = emailService ?? throw new ArgumentNullException(nameof(emailService));
     _hub                 = hub ?? throw new ArgumentNullException(nameof(hub));
     _userReferralService = userReferralService ?? throw new ArgumentNullException(nameof(userReferralService));
     _rewardHelper        = rewardHelper ?? throw new ArgumentNullException(nameof(rewardHelper));
     _userService         = userService ?? throw new ArgumentNullException(nameof(userService));
     _profileHelthHelper  = profileHelthHelper ?? throw new ArgumentNullException(nameof(profileHelthHelper));
 }