private ITreeNode getBuildingBlockNode(BuildingBlockDTO dto) { var buildingBlockNode = _nodeMapper.MapFrom(dto); foreach (var dtoBuilder in dto.Builder) { buildingBlockNode.AddChild(_nodeMapper.MapFrom(dtoBuilder)); } return(buildingBlockNode); }
protected void AddTimeReference() { var timeDTO = new ObjectBaseDTO { Id = AppConstants.Time, Name = AppConstants.Time, Icon = ApplicationIcons.Time.IconName }; _view.AddNode(_referenceMapper.MapFrom(timeDTO)); }