예제 #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));
 }
예제 #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());
 }
예제 #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));
 }
예제 #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));
 }
예제 #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));
 }
예제 #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));
 }