示例#1
0
        public async Task <ActionResult> ChangePassword(ChangePasswordModel model)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    return(Json(ReturnError(), JsonRequestBehavior.AllowGet));
                }

                var result = await _userIdentity.ChangePassword(model);

                return(Json(result));
            }
            catch (Exception e)
            {
                return(Json(e.Message));
            }
        }