public static void MapTo(this Models.Attachment attachment, External.LoanObject loanObject, AttachmentFieldList fields) { loanObject.MapValue(fields.Name, attachment.Name); loanObject.MapValue(fields.DocumentId, attachment.DocumentId); }
public static void MapTo(this Models.Person person, External.LoanObject loanObject, PersonFieldList fields) { loanObject.MapValue(fields.FirstName, person.FirstName); loanObject.MapValue(fields.LastName, person.LastName); loanObject.MapValue(fields.DateOfBirth, person.DateOfBirth); }
public static void MapTo(this Models.Loan loan, External.LoanObject loanObject) { loanObject.MapValue(3, loan.LoanAmount); loan.PrimaryBorrower?.MapTo(loanObject, FieldList.PrimaryBorrower); loan.W2?.MapTo(loanObject, FieldList.W2); }