public void Edit(int id, OfficialPositionDTO children) { //using (var uow = new UnitOfWork(new DataContext())) //{ // var obj = uow.Childrens.Get(id); // obj.Name = children.FullName; // obj.Age = children.Age; // obj.Occupation = children.Occupation; // uow.Childrens.Edit(obj); // uow.Complete(); //} throw new NotImplementedException(); }
public void Add(OfficialPositionDTO children) { //using (var uow = new UnitOfWork(new DataContext())) //{ // var obj = new Children(); // obj.Name = children.FullName; // obj.Age = children.Age; // obj.Occupation = children.Occupation; // obj.PersonalInfoID = children.PersonalInfoID; // uow.Childrens.Add(obj); // uow.Complete(); // children.ID = obj.ChildrenID; //} throw new NotImplementedException(); }