Ejemplo n.º 1
0
        public async Task <UserDetailsDto> Edit(
            [FromBody] UpdateUser.Command command)
        {
            if (!_currentUserService.IsAllowed(Permissions.EditUsers))
            {
                throw new HttpException(HttpStatusCode.Forbidden);
            }

            return(await _mediator.Send(command));
        }