public static ApprenticeApplicationModel SetClawedBackStatus(this ApprenticeApplicationModel model) { if (model.FirstPaymentStatus != null) { model.FirstPaymentStatus.IsClawedBack = model.FirstClawbackStatus != null && model.FirstClawbackStatus.IsClawedBack; } if (model.SecondPaymentStatus != null) { model.SecondPaymentStatus.IsClawedBack = model.SecondClawbackStatus != null && model.SecondClawbackStatus.IsClawedBack; } return(model); }
public static ApprenticeApplicationModel SetViewAgreementLink(this ApprenticeApplicationModel model, string viewAgreementLink) { if (model.FirstPaymentStatus != null) { model.FirstPaymentStatus.ViewAgreementLink = viewAgreementLink; } if (model.SecondPaymentStatus != null) { model.SecondPaymentStatus.ViewAgreementLink = viewAgreementLink; } return(model); }
public static ApprenticeApplicationModel SetInLearning(this ApprenticeApplicationModel model) { if (model.FirstPaymentStatus != null) { model.FirstPaymentStatus.InLearning = true; } if (model.SecondPaymentStatus != null) { model.SecondPaymentStatus.InLearning = true; } return(model); }