예제 #1
0
 public DbActionResponse Commit()
 {
     try
     {
         var rowsAffected = _context.SaveChanges();
         return(new DbActionResponse(rowsAffected > 0));
     }
     catch (DbUpdateConcurrencyException ex)
     {
         throw ex;
     }
 }
예제 #2
0
 public int SaveChanges()
 {
     return(dbContext.SaveChanges());
 }