public CampaignController( UserManager <ApplicationUser> userManager, IHttpContextAccessor httpContextAccessor, MardisContext mardisContext, ILogger <CampaignController> logger, ILogger <ServicesFilterController> loggeFilter, IDataProtectionProvider protectorProvider, IMemoryCache memoryCache, IHostingEnvironment hostingEnvironment, RedisCache distributedCache) : base(userManager, httpContextAccessor, mardisContext, logger) { Protector = protectorProvider.CreateProtector(GetType().FullName); _campaignBusiness = new CampaignBusiness(mardisContext); TableName = CCampaign.TableName; ControllerName = CCampaign.Controller; _taskCampaignBusiness = new TaskCampaignBusiness(mardisContext, distributedCache); _commonBusiness = new CommonBusiness(mardisContext); _customerBusiness = new CustomerBusiness(mardisContext); _statusCampaignBusiness = new StatusCampaignBusiness(mardisContext, memoryCache); _userBusiness = new UserBusiness(mardisContext); _channelBusiness = new ChannelBusiness(mardisContext); _serviceBusiness = new ServiceBusiness(mardisContext, distributedCache); _statusTaskBusiness = new StatusTaskBusiness(mardisContext, distributedCache); _taskNotImplementedReasonBusiness = new TaskNotImplementedReasonBusiness(mardisContext); _hostingEnv = hostingEnvironment; _profileBusiness = new ProfileBusiness(mardisContext); if (ApplicationUserCurrent.UserId != null) { _userId = new Guid(ApplicationUserCurrent.UserId); _Profile = ApplicationUserCurrent.ProfileId; _typeuser = _profileBusiness.GetById(_Profile).IdTypeUser; } }
public ChannelController( UserManager <ApplicationUser> userManager, IHttpContextAccessor httpContextAccessor, MardisContext mardisContext, ILogger <ChannelController> logger) : base(userManager, httpContextAccessor, mardisContext, logger) { _channelBusiness = new ChannelBusiness(mardisContext); }
public ServiceController( UserManager <ApplicationUser> userManager, IHttpContextAccessor httpContextAccessor, MardisContext mardisContext, ILogger <ServiceController> logger, ILogger <ServicesFilterController> loggerFilter, IDataProtectionProvider protectorProvider) : base(userManager, httpContextAccessor, mardisContext, logger) { _typeServiceBusiness = new TypeServiceBusiness(mardisContext); _customerBusiness = new CustomerBusiness(mardisContext); _serviceBusiness = new ServiceBusiness(mardisContext); _typePollBusiness = new TypePollBusiness(mardisContext); _protector = protectorProvider.CreateProtector(GetType().FullName); _channelBusiness = new ChannelBusiness(mardisContext); _questionBusiness = new QuestionBusiness(mardisContext); }