public void SavePlay(Play play) { if (play.Id == 0) context.Plays.Add(play); else context.Entry(play).State = EntityState.Modified; context.SaveChanges(); }
public void DeletePlay(Play play) { context.Plays.Remove(play); context.SaveChanges(); }
public void AddPlay(Play play) { context.Plays.Add(play); context.SaveChanges(); }