Ejemplo n.º 1
0
        protected override RouterViewModel Build(Router entity)
        {
            this.Project         = ProjectViewModel.NewInstance(entity.Project);
            this.SourceNodeGroup = NodeGroupViewModel.NewInstance(entity.SourceNodeGroup);
            this.TargetNodeGroup = NodeGroupViewModel.NewInstance(entity.TargetNode.NodeGroup);
            this.TargetNode      = NodeViewModel.NewInstance(entity.TargetNode);

            return(this);
        }
        protected override NodeGroupViewModel Build(NodeGroup entity, object args = null)
        {
            this.Project = ProjectViewModel.NewInstance(entity.Project);

            return(this);
        }