Ejemplo n.º 1
0
        public async Task <IActionResult> ChangePassword(ChangePasswordVM changePassword)
        {
            try
            {
                await _walletService.ChangePassword(changePassword.UniqueMasterCitizenNumber, changePassword.Password, changePassword.NewPassword);

                ViewData["Success"] = "Successfully changed password";
                return(View(changePassword));
            }
            catch (Exception e)
            {
                ViewData["Error"] = e.Message;
                return(View(changePassword));
            }
        }