public IHttpActionResult ChangePassword(ChangePasswordBindingModel model) { CustomUserPrincipal currentUser = User as CustomUserPrincipal; var changeUserPasswordResult = _userManagement.ChangeUserPassword(currentUser.GetUserId(), model); if (!changeUserPasswordResult.IsSuccess) { return(GetErrorResult(changeUserPasswordResult)); } return(Ok("Password Updated Successfully!")); }