public async Task <long> CreateApprenticeship(Apprenticeship apprenticeship) { _logger.Debug($"Creating apprenticeship - {apprenticeship.FirstName} {apprenticeship.LastName}", accountId: apprenticeship.EmployerAccountId, providerId: apprenticeship.ProviderId, commitmentId: apprenticeship.CommitmentId); return(await WithTransaction(async (connection, trans) => { var apprenticeshipId = await _apprenticeshipTransactions.CreateApprenticeship(connection, trans, apprenticeship); return apprenticeshipId; })); }