Beispiel #1
0
        public bool EditCategory(Category newCategory)
        {
            var category = new SuperMarketService.Category()
            {
                ID          = newCategory.ID,
                Name        = newCategory.Name,
                Description = newCategory.Description,
            };

            return(client.EditCategory(category.ID.ToString(), category));
        }
Beispiel #2
0
        public bool AddCategory(Category newCategory)
        {
            var category = new SuperMarketService.Category()
            {
                ID          = newCategory.ID,
                Name        = newCategory.Name,
                Description = newCategory.Description,
            };

            return(client.AddCategory(category));
        }