public void DeleteWine(Wine SelectedWine) { Wine Wine2Delete = DB.Wines.FirstOrDefault(e => e.Id == SelectedWine.Id); DB.Wines.Remove(SelectedWine); DB.SaveChanges(); }
public void InsertWine(Wine EnteredWine) { DB.Wines.Add(EnteredWine); DB.SaveChanges(); }