public bool Save(OsProduct OsProduct) { _connection.BeginTransaction(); if (_OsProductApp.InsertOrUpdate(OsProduct)) { _connection.Save(); _connection.Commit(); return(true); } else { _connection.Rollback(); return(false); } }