protected override async Task HandleCore(CreateApprenticeshipUpdateCommand command) { var validationResult = _validator.Validate(command); if (!validationResult.IsValid()) { throw new InvalidRequestException(validationResult.ValidationDictionary); } var request = new ApprenticeshipUpdateRequest { ApprenticeshipUpdate = command.ApprenticeshipUpdate, UserId = command.UserId, LastUpdatedByInfo = new LastUpdateInfo { EmailAddress = command.UserEmailAddress, Name = command.UserDisplayName } }; await _commitmentsApi.CreateApprenticeshipUpdate(command.EmployerId, command.ApprenticeshipUpdate.ApprenticeshipId, request); }