public void AddChild(BE.Child child) { if (dimp.SearchMother(x => x.MomId == child.MomId) == null) { throw new Exception("we dont find your mother "); } dimp.AddChild(child); }
/// <summary> /// Update child /// </summary> public void AddChild(Child child) { dal.AddChild(child); // throw new NotImplementedException(); }
/// <summary> /// add a child to the database /// </summary> /// <param name="myChild"></param> public void AddChild(Child myChild) { myIdal.AddChild(myChild); }