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