示例#1
0
        public IActionResult OnPostChangePassword(ChangePassword command)
        {
            var result = new OperationResult();

            if (ModelState.IsValid)
            {
                result = _accountApplication.ChangePassword(command);
            }
            return(new JsonResult(result));
        }
        public IActionResult OnPostChangePassword(ChangePassword command)
        {
            GetAccountDetails = _accountApplication.GetDetails(command.Id);

            command.Id = GetAccountDetails.Id;

            var password = _accountApplication.ChangePassword(command);

            return(RedirectToPage("/UserDashboard", password));
        }
        public JsonResult OnPostChangePassword(ChangePassword command)
        {
            var result = _accountApplication.ChangePassword(command);

            return(new JsonResult(result));
        }