Exemplo n.º 1
0
        protected virtual IAttributeValueStateCreated MapCreate(ICreateAttributeValue c, IAttributeCommand outerCommand, long version, IAttributeState outerState)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId = new AttributeValueStateEventId(c.AttributeId, c.Value, version);
            IAttributeValueStateCreated e = NewAttributeValueStateCreated(stateEventId);
            var s = outerState.AttributeValues.Get(c.Value);

            e.Name        = c.Name;
            e.Description = c.Description;
            e.ReferenceId = c.ReferenceId;
            e.Active      = c.Active;

            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;
            return(e);
        }// END Map(ICreate... ////////////////////////////
Exemplo n.º 2
0
 void ICreateAttributeValueCommands.Remove(ICreateAttributeValue c)
 {
     _innerCommands.Remove((CreateAttributeValueDto)c);
 }
Exemplo n.º 3
0
 void ICreateAttributeValueCommands.Add(ICreateAttributeValue c)
 {
     _innerCommands.Add((CreateAttributeValueDto)c);
 }
Exemplo n.º 4
0
 public void Remove(ICreateAttributeValue c)
 {
     _innerCommands.Remove(c);
 }
Exemplo n.º 5
0
 public void Add(ICreateAttributeValue c)
 {
     _innerCommands.Add(c);
 }