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