public async Task <IActionResult> ChangePassword() { var response = await _accountApiClient.GetUserByNameAsync(_loginManager.UserName); string result = await response.Content.ReadAsStringAsync(); switch ((int)response.StatusCode) { case (int)HttpStatusCode.OK: var existUser = JsonConvert.DeserializeObject <ChangePasswordInputModel>(result); return(View(existUser)); case (int)HttpStatusCode.NotFound: return(NotFound()); } return(View()); }