public int UpdateInstructor(Person person)
 {
     using (TransactionScope tran = new TransactionScope()) {
         Persons.AddOrUpdate(person); // this person is tracked and in context
         // then we can add as instructor by setting the navigation property.
         //person.Instructor = new Instructor() {
         //    Id = person.Id
         //};
         Instructors.AddOrUpdate(new Instructor()
         {
             Id = person.Id
         });
         //   Complete();
         tran.Complete();
         return(person.Id);
     }
 }