public IEnumerable <Models.Category> GetSubCategories(int categoryId)
        {
            // TODO: Get sub categories by category id from OAService and map (see mapping above) to the Category client Model (OAService Method: GetSubCategories)
            var dimSubCategories = oAService.GetSubCategories(categoryId);

            var categories = (from c in dimSubCategories
                              select new Models.Category()
            {
                Id = c.ProductSubcategoryKey,
                Name = c.EnglishProductSubcategoryName
            }).ToList();

            return(categories);
        }
Beispiel #2
0
 public DimProductSubcategory[] GetSubCategories(int prodId)
 {
     return(_oAService.GetSubCategories(prodId));
 }