public int Save() { int nResult = -1; int nNewUID = -1; DataSet ds = new DataSet(); using (TransactionScope scope1 = new TransactionScope(TransactionScopeOption.Required)) { try { DAL.DataProvider.SqlClientProvider oSqlClientProvider = new DAL.DataProvider.SqlClientProvider(); nNewUID = oSqlClientProvider.SaveUser(this.ID, this.Name, this.Password, out nResult); if (nResult == 0) { this.ID = nNewUID; scope1.Complete(); } } catch (System.Data.SqlClient.SqlException Exp) { //bool rethrow = // ExceptionPolicy.HandleException(Exp, "StoreLocator Data Policy"); //if (rethrow) //{ // throw; //} } catch (Exception Exp) { //bool rethrow = // ExceptionPolicy.HandleException(Exp, "StoreLocator Business Policy"); //if (rethrow) //{ // throw; //} } } return(nResult); }