public IEnumerable <CategoryView> GetCategories() { GetAllCategoriesResponse response = _productCatalogService.GetAllCategories(); return(response.Categories); }
protected IEnumerable <CategoryView> GetCategories() { GetAllCategoriesResponse response = _service.GetAllCategories(); return(response.Categories); }
public GetAllCategoriesResponse GetAllCategories() { lock (_getAllCategoriesLock) { GetAllCategoriesResponse response = _cachStorage.Retrieve <GetAllCategoriesResponse>(CacheKeys.AllCategories.ToString()); if (response == null) { response = _realProductCatalogService.GetAllCategories(); _cachStorage.Store(CacheKeys.AllCategories.ToString(), response); } return(response); } }
public IEnumerable <CategoryView> GetCategories() { return(_productCatalogService.GetAllCategories().Categories); }