Ejemplo n.º 1
0
        private List <int> GetFamilyIds(int personId)
        {
            var personHelper = new PersonLogic(Database);
            var familyIds    = new List <int>();

            var spouse = personHelper.GetSpouse(personId);

            if (spouse != null)
            {
                familyIds.Add(spouse.Id);
            }

            familyIds.AddRange(personHelper.GetChildren(personId, spouse?.Id).Select(p => p.Id));
            return(familyIds);
        }
Ejemplo n.º 2
0
 public PaymentLogic(OpaContext database, PersonLogic personHelper)
 {
     Database     = database;
     PersonHelper = personHelper;
 }
Ejemplo n.º 3
0
 public UserLogic(OpaContext database, PersonLogic personHelper)
 {
     Database     = database;
     PersonHelper = personHelper;
 }