예제 #1
0
        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);
        }
예제 #2
0
 public void updateChild(BE.Child child)
 {
     child.Age();
     dal.updateChild(child);
 }