Example #1
0
 public void MenuDelete(MenuModel item)
 {
     try
     {
         MenuList.Attach(item);
         MenuList.Remove(item);
         this.SaveChanges();
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         //throw;
         MessageBox.Show("Невозможно удалить элемент!");
     }
 }