public IHttpActionResult UpdateUser(Guid userId, UpdateUserCommand command) { if (command == null) { throw new ArgumentNullException("command"); } if (string.IsNullOrWhiteSpace(command.Name)) { throw new ArgumentException("User name must be defined."); } if (userId == Guid.Empty) { throw new ArgumentException("userId must be defined."); } identityManagementService.UpdateUser(userId, command.Name, command.IsDisabled); return(Ok()); }