Exemplo n.º 1
0
 public int Complate()
 {
     try
     {
         return(_context.SaveChanges());
     }
     catch (Exception)
     {
         IsError = true;
         return(-1);
     }
 }
Exemplo n.º 2
0
        public ActionResponse Commit()
        {
            var rowsAffected = _dbCoreDataContext.SaveChanges();

            return(new ActionResponse(rowsAffected > 0));
        }