public IQueryable<Application> BuildSearchQuery(List<SearchParameter> parameters, IQueryable<Application> query)
        {
            var garden = parameters.GardenOrDefault();

            if (garden.IsNotNull())
            {
                if (garden.ParameterValue.IsNotNullOrEmpty())
                {
                    return query.MatchesRequirement(RequirementType.Garden, garden.ParameterValue.ToUpper());
                }
            }

            return query;
        }
Exemplo n.º 2
0
        public IQueryable<Core.Objects.Property> BuildSearchQuery(List<SearchParameter> parameters, IQueryable<Core.Objects.Property> query)
        {
            var garden = parameters.GardenOrDefault();

            if (garden.IsNotNull())
            {
                if (garden.ParameterValue.IsNotNullOrEmpty())
                {
                    return query.MatchesRequirement(PropertyDetailType.Garden, garden.ParameterValue.ToUpper());
                }
            }

            return query;
        }