public bool DeleteUser(long USER_ID) { UserDa dataAccess = new UserDa(); long result = 0; using (var transaction = new TransactionScope()) { try { result = dataAccess.DeleteUser(USER_ID); if (result > 0) { transaction.Complete(); } } catch (Exception ex) { transaction.Dispose(); result = -1; throw new Exception(ex.Message, ex); } finally { transaction.Dispose(); } } return(result > 0); }