public ParishController(MardisContext mardisContext, IMemoryCache distributedCache, ILoggerFactory _loggerFactory) { _parishBusiness = new ParishBusiness(mardisContext); _logger = _loggerFactory.CreateLogger("Mardis.Engine.Services"); }
public ServicesLocalizationController(UserManager <ApplicationUser> userManager, IHttpContextAccessor httpContextAccessor, MardisContext mardisContext, ILogger <ServicesLocalizationController> logger, ILogger <ServicesFilterController> loggeFilter, IMemoryCache memoryCache) : base(userManager, httpContextAccessor, mardisContext, logger) { countryBusiness = new CountryBusiness(mardisContext, memoryCache); provinceBusiness = new ProvinceBusiness(mardisContext, memoryCache); districtBusiness = new DistrictBusiness(mardisContext); parishBusiness = new ParishBusiness(mardisContext); sectorBusiness = new SectorBusiness(mardisContext); }
public BranchController(UserManager <ApplicationUser> userManager, IHttpContextAccessor httpContextAccessor, MardisContext mardisContext, ILogger <BranchController> logger, ILogger <ServicesFilterController> loggeFilter, IMemoryCache memoryCache, RedisCache distributedCache) : base(userManager, httpContextAccessor, mardisContext, logger) { TableName = CBranch.TableName; ControllerName = CBranch.Controller; _cache = memoryCache; _branchBusiness = new BranchBusiness(mardisContext); _branchImageBusiness = new BranchImageBusiness(mardisContext); _taskCampaignBusiness = new TaskCampaignBusiness(mardisContext, distributedCache); _countryBusiness = new CountryBusiness(mardisContext, memoryCache); _provinceBusiness = new ProvinceBusiness(mardisContext, memoryCache); _districtBusiness = new DistrictBusiness(mardisContext); _parishBusiness = new ParishBusiness(mardisContext); _sectorBusiness = new SectorBusiness(mardisContext); _smsBusiness = new SmsBusiness(mardisContext); }