Esempio n. 1
0
 public int InsertGameStatistics(GameStatistics gameStatistics)
 {
     using (GamingAppDataContext db = new GamingAppDataContext())
     {
         db.GameStatistics.Add(gameStatistics);
         var result = db.SaveChanges();
         return(result);
     }
 }
Esempio n. 2
0
 public void Commit()
 {
     _dbContext.SaveChanges();
 }