Exemplo n.º 1
0
        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)));
        }