public StatusTaskBusiness(MardisContext mardisContext, RedisCache cache) : base(mardisContext) { var statusTaskDao = new StatusTaskDao(mardisContext); _myCache = cache; if (_myCache.Get <List <StatusTask> >(CacheName) == null) { _myCache.Set(CacheName, statusTaskDao.GetAllStatusTasks()); } }
public CampaignBusiness(MardisContext mardisContext) : base(mardisContext) { _campaignDao = new CampaignDao(mardisContext); _sequenceBusiness = new SequenceBusiness(mardisContext); _customerDao = new CustomerDao(mardisContext); _taskCampaignDao = new TaskCampaignDao(mardisContext); _statusTaskDao = new StatusTaskDao(mardisContext); _campaignServicesDao = new CampaignServicesDao(mardisContext); _serviceDao = new ServiceDao(mardisContext); _branchDao = new BranchDao(mardisContext); _userCanpaignDao = new UserCanpaignDao(mardisContext); }