/// <summary> /// Returns All Products /// /// GET /umbraco/Merchello/ProductApi/GetProducts /// </summary> /// <param name="keys"></param> public IEnumerable <ProductDisplay> GetAllProducts() { MerchelloHelper merchello = new MerchelloHelper(); var criteria = ExamineManager.Instance.CreateSearchCriteria(); criteria.Field("master", "True"); return(merchello.SearchProducts(criteria)); }
/// <summary> /// Returns All Products /// /// GET /umbraco/Merchello/ProductApi/GetProducts /// </summary> /// <param name="keys"></param> public IEnumerable <ProductDisplay> GetAllProducts(int page, int perPage) { MerchelloHelper merchello = new MerchelloHelper(); var criteria = ExamineManager.Instance.CreateSearchCriteria(); criteria.Field("master", "True"); var products = merchello.SearchProducts(criteria); return(products.Skip((page - 1) * perPage).Take(perPage)); }
/// <summary> /// Returns All Products /// /// GET /umbraco/Merchello/ProductApi/GetProducts /// </summary> /// <param name="keys"></param> public IEnumerable<ProductDisplay> GetAllProducts() { MerchelloHelper merchello = new MerchelloHelper(); var criteria = ExamineManager.Instance.CreateSearchCriteria(); criteria.Field("master", "True"); return merchello.SearchProducts(criteria); }
/// <summary> /// Returns All Products /// /// GET /umbraco/Merchello/ProductApi/GetFilteredProducts /// </summary> /// <param name="term"></param> public IEnumerable<ProductDisplay> GetFilteredProducts(string term, int page, int perPage) { MerchelloHelper merchello = new MerchelloHelper(); return merchello.SearchProducts(term).Skip((page - 1) * perPage).Take(perPage); }
/// <summary> /// Returns All Products /// /// GET /umbraco/Merchello/ProductApi/GetFilteredProducts /// </summary> /// <param name="term"></param> public IEnumerable<ProductDisplay> GetFilteredProducts(string term) { MerchelloHelper merchello = new MerchelloHelper(); return merchello.SearchProducts(term); }
/// <summary> /// Returns All Products /// /// GET /umbraco/Merchello/ProductApi/GetProducts /// </summary> /// <param name="keys"></param> public IEnumerable<ProductDisplay> GetAllProducts(int page, int perPage) { MerchelloHelper merchello = new MerchelloHelper(); var criteria = ExamineManager.Instance.CreateSearchCriteria(); criteria.Field("master", "True"); var products = merchello.SearchProducts(criteria); return products.Skip((page-1) * perPage).Take(perPage); }
/// <summary> /// Returns All Products /// /// GET /umbraco/Merchello/ProductApi/GetFilteredProducts /// </summary> /// <param name="term"></param> public IEnumerable <ProductDisplay> GetFilteredProducts(string term, int page, int perPage) { MerchelloHelper merchello = new MerchelloHelper(); return(merchello.SearchProducts(term).Skip((page - 1) * perPage).Take(perPage)); }
/// <summary> /// Returns All Products /// /// GET /umbraco/Merchello/ProductApi/GetFilteredProducts /// </summary> /// <param name="term"></param> public IEnumerable <ProductDisplay> GetFilteredProducts(string term) { MerchelloHelper merchello = new MerchelloHelper(); return(merchello.SearchProducts(term)); }