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)); }
public bool AddCategory(Category newCategory) { var category = new SuperMarketService.Category() { ID = newCategory.ID, Name = newCategory.Name, Description = newCategory.Description, }; return(client.AddCategory(category)); }