/// <summary> /// Retrieves a <see cref="ProductVariantDisplay"/> from the Merchello Product index. /// </summary> /// <param name="key"> /// The key. /// </param> /// <returns> /// The <see cref="ProductVariantDisplay"/>. /// </returns> public ProductVariantDisplay ProductVariant(string key) { return(ProductQuery.GetVariantDisplayByKey(key)); }
/// <summary> /// Returns a collection of all <see cref="ProductDisplay"/> /// </summary> /// <returns> /// A collection of all <see cref="ProductDisplay"/> found in the index. /// </returns> public IEnumerable <ProductDisplay> AllProducts() { return(ProductQuery.GetAllProducts()); }
/// <summary> /// Retrieves a <see cref="ProductDisplay"/> from the Merchello Product index. /// </summary> /// <param name="key"> /// The key. /// </param> /// <returns> /// The <see cref="ProductDisplay"/>. /// </returns> public ProductDisplay Product(Guid key) { return(ProductQuery.GetByKey(key)); }
/// <summary> /// Retrieves a <see cref="ProductDisplay"/> from the Merchello Product index. /// </summary> /// <param name="key"> /// The key. /// </param> /// <returns> /// The <see cref="ProductDisplay"/>. /// </returns> public ProductDisplay Product(string key) { return(ProductQuery.GetByKey(key)); }
/// <summary> /// Searches the Merchello Product index. NOTE: This returns a ProductDisplay and is not a Content search. Use the the UmbracoHelper.Search for content searches. /// </summary> /// <param name="criteria"> /// The criteria. /// </param> /// <returns> /// <returns>The collection of <see cref="ProductDisplay"/></returns> /// </returns> public IEnumerable <ProductDisplay> SearchProducts(ISearchCriteria criteria) { return(ProductQuery.Search(criteria)); }
/// <summary> /// Searches the Merchello Product index. NOTE: This returns a ProductDisplay and is not a Content search. Use the the UmbracoHelper.Search for content searches. /// </summary> /// <param name="term">The search term</param> /// <returns>The collection of <see cref="ProductDisplay"/></returns> public IEnumerable <ProductDisplay> SearchProducts(string term) { return(ProductQuery.Search(term)); }