コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: OAServiceAgent.cs プロジェクト: doantranthanh/OBW
 public DimProductSubcategory[] GetSubCategories(int prodId)
 {
     return(_oAService.GetSubCategories(prodId));
 }