public void AddComment(Comment comment) { using (var context = new ReversiContext()) { context.Add(comment); context.SaveChanges(); } }
public void AddScore(Score score) { using (var context = new ReversiContext()) { context.Scores.Add(score); context.SaveChanges(); } }
public void AddRating(Rating rating) { using (var context = new ReversiContext()) { context.Add(rating); context.SaveChanges(); } }