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