public void Create(Guid conceptIdentity, string name, string description, MetadataBag bag)
 {
     var concept = new MetadataDefinitionGroup(conceptIdentity, new MetadataDefinitionGroupName(name), new MetadataDefinitionGroupDescription(description));
     foreach(var selection in bag.Selection)
         concept.AssociateAttribute(selection);
     _repository.Save(concept.ToMaybe());
 }
Ejemplo n.º 2
0
 public CreateMetadataDefinitionGroupCommand(Guid identity, string name, string description, MetadataBag bag, TrackingBase tracking)
 {
     Identity    = identity;
     Name        = name;
     Description = description;
     Tracking    = tracking;
     Bag         = bag;
 }
 public CreateMetadataDefinitionGroupCommand(Guid identity, string name, string description, MetadataBag bag, TrackingBase tracking)
 {
     Identity = identity;
     Name = name;
     Description = description;
     Tracking = tracking;
     Bag = bag;
 }