public GetFeaturedProductsResponse GetFeaturedProducts() { var response = new GetFeaturedProductsResponse(); response.Products = _presentationRepository.FindByType <FeaturedProductDto>(); return(response); }
private IEnumerable <ProductDetailDto> FindAllProductTitles() { lock (_getAllProductTitlesLock) { IEnumerable <ProductDetailDto> allProductTitles; allProductTitles = _cachStorage.Retrieve <IEnumerable <ProductDetailDto> >(CacheKeys.AllProductTitles.ToString()); if (allProductTitles == null) { allProductTitles = _presentationRepository.FindByType <ProductDetailDto>(); _cachStorage.Store(CacheKeys.AllProductTitles.ToString(), allProductTitles); } return(allProductTitles); } }