Beispiel #1
0
        public Category GetCategories()
        {
            var request = new mAxCommerceServiceGetCategoriesRequest(this.callContext);
            mAxCommerceCategory category = this.aifServiceClient.getCategories(request).response;

            return(this.MapCategory(category));
        }
Beispiel #2
0
 private Category MapCategory(mAxCommerceCategory category)
 {
     return(new Category
     {
         Id = category.parmId,
         Name = category.parmName,
         ChildCategories = category.parmChildCategories.Select(this.MapCategory).ToList()
     });
 }