예제 #1
0
        public async Task <IEnumerable <CommercialPropertyIndex> > MatchCommercialRentalProperty(CommercialQuery query)
        {
            var propertyList = await _manager.GetActiveIndustrialProperty();

            var result = _match.MatchCommercialProperty(query, Purpose.Rent, propertyList);

            string stringQuery = $"Number of rooms: {query.NumberOfRooms}. max price: {query.maxPrice}, min price: {query.minPrice}";
            string location    = $"{query.City}, {query.State}";

            _manager.UpdateSearchQueryToLog(stringQuery, location, PropertyType.Commercial, 0, result.Count);

            return(result.OrderByDescending(m => m.Rank));
        }
예제 #2
0
 public async Task <IActionResult> GetIndustrialProperty()
 {
     return(Ok(await _manager.GetActiveIndustrialProperty()));
 }