Пример #1
0
 public void RemoveSubCategory(Category category, SubCategory subCategory)
 {
     category.Subcategories.Remove(subCategory);
     Save();
 }
Пример #2
0
 public void EditSubCategory(SubCategory selectedsubCategory, string name)
 {
     selectedsubCategory.NameSubcategory = name;
     Save();
 }