Ejemplo n.º 1
0
 public async Task<IEnumerable<ResponseDto.LustSiteAddressSearch>> SearchLust(RequestDto.LustSiteAddressSearch lustSiteAddressSearch)
 {
     var searchFilters = _mapper.Map<RequestDto.LustSiteAddressSearch, EntityDto.LustSiteAddressSearch>(lustSiteAddressSearch);
     var resultList = new List<ResponseDto.LustSiteAddressSearch>();
     foreach (var result in await _lustRepository.GetApOLPRRGetLustLookup(searchFilters))
     {
         resultList.Add(_mapper.Map<EntityDto.ApOlprrGetLustLookup, ResponseDto.LustSiteAddressSearch>(result));
     }
     return resultList;
 }