public APIPerson.Person GetSpouse(object pid) { var p1 = db.LoadPersonById(pid.ToInt()); if (p1 == null) return null; var api = new APIPerson(db); var p = api.GetPersonData(p1.SpouseId ?? 0); return p; }
public APIPerson.Person GetPerson(object pid) { var api = new APIPerson(db); var p = api.GetPersonData(pid.ToInt()); return p; }