Esempio n. 1
0
        public async Task <IHttpActionResult> ChangePassword(string username, ChangePasswordModel model)
        {
            IdentityUser user = await _bl.ChangePasswordAsync(username, model);

            //return user;
            if (user.Validation.IsValid)
            {
                model.AppendTransactionContext(Request);
                return(Ok(user));
            }
            CreateModelState(user.Validation);
            return(BadRequest(ModelState));
        }