예제 #1
0
        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));
        }
예제 #2
0
        public House GetIdealHouse(Houses serviceData)
        {
            ServiceData = serviceData;

            if (ServiceData == null)
            {
                GetHousingInfo();
            }
            _sortingHelper = SortingHelper.Create(ServiceData);
            return(_sortingHelper.GetIdealHouse());
        }