public async Task <UserDetailsDto> Edit( [FromBody] UpdateUser.Command command) { if (!_currentUserService.IsAllowed(Permissions.EditUsers)) { throw new HttpException(HttpStatusCode.Forbidden); } return(await _mediator.Send(command)); }