Exemplo n.º 1
0
        public ActionResult EditPassword(string oldPassword, string newPassword)
        {
            IAccountAppService _IAccountAppService = new AccountAppService();

            string msg = string.Empty;

            bool IsSuccess = _IAccountAppService.ChangePassword(this.CurrentSession.UserName, oldPassword, newPassword, out msg);

            if (IsSuccess)
            {
                return(this.SuccessMsg(msg));
            }
            else
            {
                return(this.FailedMsg(msg));
            }
        }