public ApplicationModel(Guid applicationId, string accountId, string accountLegalEntityId, IEnumerable <ApplicationApprenticeshipModel> apprentices, bool bankDetailsRequired, bool newAgreementRequired)
 {
     ApplicationId        = applicationId;
     AccountId            = accountId;
     AccountLegalEntityId = accountLegalEntityId;
     Apprentices          = apprentices.ToList();
     TotalPaymentAmount   = Apprentices.Sum(x => x.ExpectedAmount);
     BankDetailsRequired  = bankDetailsRequired;
     NewAgreementRequired = newAgreementRequired;
 }
Beispiel #2
0
 public ApplicationConfirmationViewModel(Guid applicationId, string accountId, string accountLegalEntityId,
                                         IEnumerable <ApplicationApprenticeship> apprentices, bool bankDetailsRequired, bool newAgreementRequired, string organisationName)
 {
     ApplicationId        = applicationId;
     AccountId            = accountId;
     AccountLegalEntityId = accountLegalEntityId;
     Apprentices          = apprentices.ToList();
     TotalPaymentAmount   = Apprentices.Sum(x => x.ExpectedAmount);
     BankDetailsRequired  = bankDetailsRequired;
     NewAgreementRequired = newAgreementRequired;
     OrganisationName     = organisationName;
 }