public async Task <IActionResult> ApiChangePassword(string newPassword) { var userId = User.Claims.FirstOrDefault(x => x.Type == "OryxUser")?.Value; var apiMsg = await ApiMessage.Wrap(async() => { userAccountBusiness.ChangePassword(userId, newPassword); }); return(Json(apiMsg)); }