Пример #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);
        }
Пример #2
0
 public PaymentLogic(OpaContext database, PersonLogic personHelper)
 {
     Database     = database;
     PersonHelper = personHelper;
 }
Пример #3
0
 public UserLogic(OpaContext database, PersonLogic personHelper)
 {
     Database     = database;
     PersonHelper = personHelper;
 }