public Category GetCategories() { var request = new mAxCommerceServiceGetCategoriesRequest(this.callContext); mAxCommerceCategory category = this.aifServiceClient.getCategories(request).response; return(this.MapCategory(category)); }
private Category MapCategory(mAxCommerceCategory category) { return(new Category { Id = category.parmId, Name = category.parmName, ChildCategories = category.parmChildCategories.Select(this.MapCategory).ToList() }); }