Exemple #1
0
        public async Task <IActionResult> UpdateUser([FromBody] UpdateUser.Request request, Guid id)
        {
            request.Id        = id;
            request.ActionBy  = UserId.GetValueOrDefault();
            request.AccountId = AccountId.GetValueOrDefault();

            var result = await Mediator.Send(request);

            return(Respond(result));
        }
 public async Task <IActionResult> UpdateUser([FromBody] UpdateUser.Request request) => Ok((await new UpdateUser(_context, _userManager).Do(request)));