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)); }
public async Task <IActionResult> GetIndustrialProperty() { return(Ok(await _manager.GetActiveIndustrialProperty())); }