Ejemplo n.º 1
0
 public void Rate(Rating rating)
 {
     using (var context = new ReversiDBContext())
     {
         context.Ratings.Add(rating);
         context.SaveChanges();
     }
 }
Ejemplo n.º 2
0
 public void AddScore(Score score)
 {
     using (var context = new ReversiDBContext())
     {
         context.Scores.Add(score);
         context.SaveChanges();
     }
 }