public async Task <IActionResult> GetUserListings(int id) { var userListings = await _repo.GetUserListings(id); var listingsToReturn = _mapper.Map <IEnumerable <ListingSearchResultsDto> >(userListings); return(Ok(listingsToReturn)); }
public async Task <IActionResult> GetUserListings(int id) { var userListings = await _repo.GetUserListings(id); var listingsToReturn = _mapper.Map <IEnumerable <ListingSearchResultsDto> >(userListings); return(Ok(listingsToReturn)); }