Esempio n. 1
0
 public bool Commit()
 {
     try
     {
         return(_context.SaveChanges() > 0);
     }
     catch (System.Exception ex)
     {
         Console.Write(ex);
         return(false);
     }
 }
Esempio n. 2
0
 public int SaveChanges() => Db.SaveChanges();