Exemplo n.º 1
0
        public async Task <IHttpActionResult> ChangePasswordAsync(string oldPassword, string newPassword)
        {
            var userId = GetUserId();
            var user   = await _userManager.ChangePasswordAsync(oldPassword, newPassword, userId);

            return(Ok(user));
        }