private void SaveRecord() { try { _Storage.BeginTransaction(AzManIsolationLevel.ReadUncommitted); switch (_Mode) { case Mode.Create: _Application = _Store.CreateApplication(txtName.Text.Trim(), txtDescription.Text); break; case Mode.Update: _Application.Rename(this.txtName.Text.Trim()); _Application.Update(this.txtDescription.Text.Trim()); _Storage.CommitTransaction(); break; } _Storage.CommitTransaction(); } catch (Exception ex) { _Storage.RollBackTransaction(); throw ex; } }