public IQueryable<Core.Objects.Property> BuildSearchQuery(List<SearchParameter> parameters, IQueryable<Core.Objects.Property> query) { var maximumPrice = parameters.MaximumPriceOrDefault(); if (maximumPrice.IsNotNull()) { var price = 0.0M; var result = decimal.TryParse(maximumPrice.ParameterValue, out price); if (result) return query.MaximumPrice(price); } return query; }