Example #1
0
 public NodeReference EnsureActor(Actor actor)
 {
     var newActor = CreateActor(actor);
     //var characterService = new CharacterService(db);
     //foreach (var character in actor.Characters)
     //{
     //    var newCharacter = db.EnsureCharacter(character);
     //}
     return newActor;
 }
Example #2
0
 public NodeReference CreateActor(Actor actor)
 {
     var newActor = db.Create<Actor>(actor, new ObjectBelongsTo(db.RootNode));
     return newActor;
 }