first commit
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Landmark.OLA.Models.HomeMortgageDisclosureAct;
|
||||
|
||||
namespace Landmark.OLA.Models.Individuals
|
||||
{
|
||||
public class Individual : HistoryIndividual, IApplicant
|
||||
{
|
||||
[Required]
|
||||
//Nullable so that there is no default value
|
||||
public bool? IsMarried { get; set; }
|
||||
|
||||
public MailableSpouse NonApplicantSpouse { get; set; }
|
||||
|
||||
public HistoryIndividual DetailedNonApplicantSpouse { get; set; }
|
||||
|
||||
public Hmda HmdaValues { get; set; }
|
||||
|
||||
public Individual()
|
||||
: base()
|
||||
{
|
||||
HmdaValues = new Hmda();
|
||||
}
|
||||
|
||||
public Individual(Guid id)
|
||||
: base(id)
|
||||
{
|
||||
HmdaValues = new Hmda();
|
||||
}
|
||||
|
||||
public Individual( Hmda hmda)
|
||||
: base()
|
||||
{
|
||||
HmdaValues = hmda;
|
||||
}
|
||||
|
||||
public bool HasAnyNonApplicantSpouse()
|
||||
{
|
||||
var hasNonApplicantSpouse = NonApplicantSpouse is not null;
|
||||
var hasDetailedNonApplicantSpouse = DetailedNonApplicantSpouse is not null;
|
||||
|
||||
return hasNonApplicantSpouse || hasDetailedNonApplicantSpouse;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user