public static moduleModel.SearchCriteria ToModuleModel(this webModel.ListEntrySearchCriteria criteria)
		{
			var retVal = new moduleModel.SearchCriteria();
			retVal.InjectFrom(criteria);
			retVal.ResponseGroup = (moduleModel.ResponseGroup)(int)criteria.ResponseGroup;
			
			return retVal;
		}
Esempio n. 2
0
        public static coreModel.SearchCriteria ToModuleModel(this webModel.ListEntrySearchCriteria criteria)
        {
            var retVal = new coreModel.SearchCriteria();

            retVal.InjectFrom(criteria);
            retVal.ResponseGroup = (coreModel.SearchResponseGroup)(int) criteria.ResponseGroup;

            return(retVal);
        }
Esempio n. 3
0
        public static coreModel.SearchCriteria ToCoreModel(this webModel.ListEntrySearchCriteria criteria)
        {
            var retVal = new coreModel.SearchCriteria();
            retVal.InjectFrom(criteria);
            retVal.Skip = criteria.Start;
            retVal.Take = criteria.Count;
            retVal.WithHidden = true;
            retVal.ResponseGroup = (coreModel.SearchResponseGroup)(int)criteria.ResponseGroup;

            return retVal;
        }
Esempio n. 4
0
        public static coreModel.SearchCriteria ToCoreModel(this webModel.ListEntrySearchCriteria criteria)
        {
            var retVal = new coreModel.SearchCriteria();

            retVal.InjectFrom(criteria);
            retVal.Skip          = criteria.Start;
            retVal.Take          = criteria.Count;
            retVal.WithHidden    = true;
            retVal.ResponseGroup = (coreModel.SearchResponseGroup)(int) criteria.ResponseGroup;

            return(retVal);
        }
        public static coreModel.SearchCriteria ToCoreModel(this webModel.SearchCriteria criteria)
        {
            var retVal = new coreModel.SearchCriteria();

            retVal.InjectFrom(criteria);

            retVal.ResponseGroup = criteria.ResponseGroup;
            retVal.CategoryIds   = criteria.CategoryIds;
            retVal.CatalogIds    = criteria.CatalogIds;
            retVal.PricelistIds  = criteria.PricelistIds;
            retVal.Terms         = criteria.Terms;
            retVal.Facets        = criteria.Facets;
            retVal.ProductTypes  = criteria.ProductTypes;
            retVal.VendorIds     = criteria.VendorIds;

            if (!criteria.PropertyValues.IsNullOrEmpty())
            {
                retVal.PropertyValues = criteria.PropertyValues.Select(x => x.ToCoreModel()).ToArray();
            }

            return(retVal);
        }