Beispiel #1
0
        public void DeleteSubcategory()
        {
            if (SelectedSubcategory == null)
            {
                return;
            }

            JobSubcategoryRepository.Instance.RemoveItem(SelectedSubcategory);
            Subcategories.Remove(SelectedSubcategory);

            SubcategoryName        = "";
            SubcategoryDescription = "";
        }
Beispiel #2
0
 public void UpdateSubcategory(Subcategory subcategory)
 {
     Subcategories.Remove(Subcategories.First(sub => sub.ID == subcategory.ID));
     Subcategories.Add(subcategory);
 }
Beispiel #3
0
 public void DeleteSubcategory(Subcategory subcategory)
 {
     Subcategories.Remove(subcategory);
     SaveChanges();
 }
Beispiel #4
0
 public void RemoveSubcategory(Subcategory subcategory)
 {
     Subcategories.Remove(subcategory);
 }