public async Task <IEnumerable <DateCompare> > GetDateCompares() { var resultList = new List <DateCompare>(); foreach (var result in await _lustRepository.GetDateCompares()) { resultList.Add(_mapper.Map <EntityDto.DateCompare, DateCompare>(result)); } return(resultList); }