public async Task<IEnumerable<ResponseDto.ApOlprrGetIncidents>> GetIncidents(string office, string status, string siteType, string olprrId , int sortColumn, int sortOrder, int pageNumber, int rowsPerPage) { var resultList = new List<ResponseDto.ApOlprrGetIncidents>(); foreach (var result in await _lustRepository.ApOlprrGetIncidents(office, status, siteType, olprrId, sortColumn, sortOrder, pageNumber, rowsPerPage)) { resultList.Add(_mapper.Map<EntityDto.ApOlprrGetIncidents, ResponseDto.ApOlprrGetIncidents>(result)); } return resultList; }