Ejemplo 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));
 }
Ejemplo 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());
 }
Ejemplo 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));
 }
Ejemplo 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));
 }
Ejemplo 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));
 }
Ejemplo 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));
 }