Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 public NodeReference CreateActor(Actor actor)
 {
     var newActor = db.Create<Actor>(actor, new ObjectBelongsTo(db.RootNode));
     return newActor;
 }