Esempio n. 1
0
 /// <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));
 }
Esempio n. 2
0
 /// <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());
 }
Esempio n. 3
0
 /// <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));
 }
Esempio n. 4
0
 /// <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));
 }
Esempio n. 5
0
 /// <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));
 }
Esempio n. 6
0
 /// <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));
 }