public void Add(PresetPizzas item) { if (db.PresetPizzas.Any(e => e.PizzaName == item.PizzaName)) { Console.WriteLine("Pizza with this name already exists"); } else { db.PresetPizzas.Add(item); db.SaveChanges(); Console.WriteLine("Pizza craeted successfully"); } }
public void Modify(PresetPizzas item) { throw new NotImplementedException(); }