Exemple #1
0
        public void Normalize()
        {
            Keyword    = Keyword.EmptyToNull();
            Sort       = Sort.EmptyToNull();
            SortOrder  = SortOrder.EmptyToNull();
            CatalogId  = CatalogId.EmptyToNull();
            CategoryId = CategoryId.EmptyToNull();
            Sort       = Sort.EmptyToNull();
            Sort       = Sort.EmptyToNull();

            if (!string.IsNullOrEmpty(Keyword))
            {
                Keyword = Keyword.EscapeSearchTerm();
            }

            if (PricelistIds != null)
            {
                PricelistIds = PricelistIds.Where(id => id != null).ToArray();

                if (!PricelistIds.Any())
                {
                    PricelistIds = null;
                }
            }
        }
Exemple #2
0
        public virtual void Normalize()
        {
            Keyword    = Keyword.EmptyToNull();
            Sort       = Sort.EmptyToNull();
            CatalogId  = CatalogId.EmptyToNull();
            CategoryId = CategoryId.EmptyToNull();

            if (!string.IsNullOrEmpty(Keyword))
            {
                Keyword = Keyword.EscapeSearchTerm();
            }
        }