Esempio n. 1
0
        public void UpdateUser(UserInfo info)
        {
            try
            {
                TransactionUtil.OnEntry();

                this.userDao.UpdateUser(info);

                TransactionUtil.OnSuccess();
            }
            catch (Exception)
            {
                TransactionUtil.OnException();
                throw;
            }
            finally
            {
                TransactionUtil.OnExit();
            }
        }
Esempio n. 2
0
        public void DeleteUser(int id)
        {
            try
            {
                TransactionUtil.OnEntry();

                this.userDao.DeleteUser(id);

                TransactionUtil.OnSuccess();
            }
            catch (Exception)
            {
                TransactionUtil.OnException();
                throw;
            }
            finally
            {
                TransactionUtil.OnExit();
            }
        }
Esempio n. 3
0
        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();
            }
        }
Esempio n. 4
0
        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);
        }