public void addChild(BE.Child child) { if (searchMother(child.IdOfMom) == null) { throw (new Exception("You can not add a child Without a mother")); } if (searchChild(child.Id) != null) { throw (new Exception("You can not add a child who is alredy xsist on the child list")); } child.Age(); dal.addChild(child); }
public void updateChild(BE.Child child) { child.Age(); dal.updateChild(child); }