public async Task OnGet() { var apprenticeship = await _client .GetApprenticeship(_authenticatedUser.ApprenticeId, ApprenticeshipId.Id); if (apprenticeship.RolesAndResponsibilitiesCorrect == true) { RolesAndResponsibilitiesConfirmed = true; } }
public async Task OnGet() { var apprenticeship = await _client .GetApprenticeship(_authenticatedUser.ApprenticeId, ApprenticeshipId.Id); if (apprenticeship.HowApprenticeshipDeliveredCorrect == true) { ConfirmedHowApprenticeshipDelivered = true; } }
public async Task OnGet() { var apprenticeship = await _client .GetApprenticeship(_authenticatedUser.ApprenticeId, ApprenticeshipId.Id); EmployerName = apprenticeship.EmployerName; if (apprenticeship.EmployerCorrect == true) { ConfirmedEmployer = true; } }
public async Task OnGetAsync() { var apprenticeship = await _client .GetApprenticeship(_authenticatedUser.ApprenticeId, ApprenticeshipId.Id); TrainingProviderName = apprenticeship.TrainingProviderName; if (apprenticeship.TrainingProviderCorrect == true) { ConfirmedTrainingProvider = true; } }
public async Task OnGetAsync() { _ = ApprenticeshipId ?? throw new ArgumentNullException(nameof(ApprenticeshipId)); //var apprenticeship = await _client.GetApprenticeship(ApprenticeshipId.Id); var apprenticeship = await _client .GetApprenticeship(_authenticatedUser.ApprenticeId, ApprenticeshipId.Id); EmployerConfirmation = apprenticeship.EmployerCorrect; TrainingProviderConfirmation = apprenticeship.TrainingProviderCorrect; ApprenticeshipDetailsConfirmation = apprenticeship.ApprenticeshipDetailsCorrect; RolesAndResponsibilitiesConfirmation = apprenticeship.RolesAndResponsibilitiesCorrect; HowApprenticeshipWillBeDeliveredConfirmation = apprenticeship.HowApprenticeshipDeliveredCorrect; }
public async Task OnGet() { var apprenticeship = await _client .GetApprenticeship(_authenticatedUser.ApprenticeId, ApprenticeshipId.Id); CourseName = apprenticeship.CourseName; CourseLevel = apprenticeship.CourseLevel; CourseOption = apprenticeship.CourseOption; DurationInMonths = apprenticeship.DurationInMonths; PlannedStartDate = apprenticeship.PlannedStartDate; PlannedEndDate = apprenticeship.PlannedEndDate; if (apprenticeship.ApprenticeshipDetailsCorrect == true) { ConfirmedApprenticeshipDetails = true; } }
internal Task <Apprenticeship> GetApprenticeship(long id) => client.GetApprenticeship(authenticatedUser.ApprenticeId, id);