public ServicesCatalogController(UserManager <ApplicationUser> userManager, IHttpContextAccessor httpContextAccessor, MardisContext mardisContext, ILogger <ServicesCatalogController> logger, RedisCache distributedCache, IMemoryCache memoryCache) : base(userManager, httpContextAccessor, mardisContext, logger) { cache = memoryCache; catalogBusiness = new CatalogBusiness(mardisContext); customerBusiness = new CustomerBusiness(mardisContext); typeBusinessBusiness = new TypeBusinessBusiness(mardisContext); serviceBusiness = new ServiceBusiness(mardisContext, distributedCache); statusCampaignBusiness = new StatusCampaignBusiness(mardisContext, memoryCache); typeServiceBusiness = new TypeServiceBusiness(mardisContext); this.userManager = userManager; }
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); }