public async Task <IActionResult> Update(UpdateUserApiModel model)
        {
            try
            {
                var result = await _userService.UpdateIdentityUserAsync(new UpsertUserModel
                {
                    Email    = model.Email,
                    Password = model.Password,
                });

                if (result.IsValid == false)
                {
                    return(BadRequest(result.Errors));
                }

                return(Ok());
            }
            catch (Exception ex)
            {
                return(BadRequest(AppConstants.GenericErrorMsg));
            }
        }
Exemplo n.º 2
0
 public void Put(string username, [FromBody] UpdateUserApiModel userApiModel)
 {
     throw new NotImplementedException();
 }