public async Task <List <ApplicationsDTO> > GetAll() { loggingBuilder.AddApplicationId(1); string key = "GetAllApplications"; return(await _cachingHandler.GetOrAddWithMappingAsync <List <Applications>, List <ApplicationsDTO> >(key, () => _unitOfWork.GetRepository <Applications>().GetAll().ToList(), DateTime.Now.AddMinutes(30))); }