Пример #1
0
 public void DeleteDessert(Dessert dessert) => MenuDesserts.Remove(MenuDesserts.SingleOrDefault(md => md.DessertId == dessert.Id));
Пример #2
0
 public void AddDessert(Dessert dessert, DateTime datum) => MenuDesserts.Add(new MenuDessert()
 {
     MenuId = Id, Menu = this, DessertId = dessert.Id, Dessert = dessert, Datum = datum
 });