常用方法
常用方法
常用方法
常用方法
public List <HouseAddressViewModel> GetHousesByAddress(string address, int count) { if (address == "" || count == 0) { return(new List <HouseAddressViewModel>()); } var houses = _houseRepository.GetHousesByAddress(address, count); return(houses.Select(h => _mapper.Map <House, HouseAddressViewModel>(h)).ToList()); }