public string constructDeclarationBodySection(Models.Declaration declaration) { string declarationBody = "<b>6. DECLARATION (Compulsory)</b>" + SystemConstants.lineSkip; string[] applicantValues = { declaration.ApplicantDeclaration.ApplicantSignature.SignatureInitials, declaration.ApplicantDeclaration.ApplicantSignature.Date, declaration.ApplicantDeclaration.WitnessSignature.SignatureInitials, declaration.ApplicantDeclaration.WitnessSignature.Date, declaration.ApplicantDeclaration.ParentOrGuardianDetailsSignature.SignatureInitials, declaration.ApplicantDeclaration.ParentOrGuardianDetailsSignature.Date, }; string[] benifactorValues = { declaration.BenifactorDeclaration.Signature.SignatureInitials, declaration.BenifactorDeclaration.Signature.Date, declaration.BenifactorDeclaration.Idnumber.ToString(), }; declarationBody += "I, <b><u> " + declaration.ApplicantDeclaration.FullName + " </u></b> (Full Name)," + "ID/Passport Number: <b><u> " + declaration.ApplicantDeclaration.IdorPassportNumber + " </u></b> , " + "the undersigned, declare that all the particulars supplied by me in this form are true, " + "complete and correct. I accept that incorrect or misleading information could lead to the cancellation of this application." + SystemConstants.lineSkip; declarationBody += ConstructTable(SystemConstants.applicantTitles, applicantValues, "Applicant"); declarationBody += "<i>This section must be completed by the benefactor, i.e. the person who will be responsible for the payment of all tuition fees.</i>" + SystemConstants.lineSkip; declarationBody += "I, <b><u> " + declaration.BenifactorDeclaration.fullName + " </u></b> (Full Name), the undersigned, hereby acknowledge myself to be jointly and separately responsible for monies, " + "which the above mentioned applicant may at any stage be owing to FFSA (Pty) Ltd in terms of the agreement that he/she concluded with FFSA (Pty) Ltd, as set out above, including any change thereto." + SystemConstants.lineSkip; return(declarationBody += ConstructTable(SystemConstants.benifactorTitles, benifactorValues, "Parent/Guardian/Benefactor")); }
public ActionResult Index(Models.Declaration declaration) { if (ModelState.IsValid) { return(View("Render", declaration)); } return(View()); }
public int SaveDeclaration(Models.Declaration declaration) { var dbDeclaration = new Declaration() { ApplicantDeclarationId = SaveApplicantDeclaration(declaration.ApplicantDeclaration), BenifactorDeclarationId = SaveBenifactorDeclaration(declaration.BenifactorDeclaration) }; _ffsaDbContext.Add(dbDeclaration); _ffsaDbContext.SaveChanges(); return(dbDeclaration.Id); }