public IEnumerable <House> GetFilteredListOfHouses(Properties.SearchCriteria searchCriteria, Properties.SortingCriteria sortingCritera, Houses serviceData) { ServiceData = serviceData; if (ServiceData == null) { GetHousingInfo(); } _sortingHelper = SortingHelper.Create(ServiceData); return(_sortingHelper.GetSortedHouseList(searchCriteria, sortingCritera)); }
public House GetIdealHouse(Houses serviceData) { ServiceData = serviceData; if (ServiceData == null) { GetHousingInfo(); } _sortingHelper = SortingHelper.Create(ServiceData); return(_sortingHelper.GetIdealHouse()); }