public void UpdateUser(UserInfo info) { try { TransactionUtil.OnEntry(); this.userDao.UpdateUser(info); TransactionUtil.OnSuccess(); } catch (Exception) { TransactionUtil.OnException(); throw; } finally { TransactionUtil.OnExit(); } }
public void DeleteUser(int id) { try { TransactionUtil.OnEntry(); this.userDao.DeleteUser(id); TransactionUtil.OnSuccess(); } catch (Exception) { TransactionUtil.OnException(); throw; } finally { TransactionUtil.OnExit(); } }
public void UpdatePassword(int id, string loginPwd) { try { TransactionUtil.OnEntry(); this.userDao.UpdatePassword(id, loginPwd); TransactionUtil.OnSuccess(); } catch (Exception) { TransactionUtil.OnException(); throw; } finally { TransactionUtil.OnExit(); } }
public UserInfo AddUser(UserInfo info) { try { TransactionUtil.OnEntry(); info = this.userDao.AddUser(info); TransactionUtil.OnSuccess(); } catch (Exception) { TransactionUtil.OnException(); throw; } finally { TransactionUtil.OnExit(); } return(info); }