Exemplo n.º 1
0
        protected virtual IPicklistRoleStateCreated MapCreate(ICreatePicklistRole c, IPicklistCommand outerCommand, long version, IPicklistState outerState)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId            = new PicklistRoleEventId(c.PicklistId, c.PartyRoleId, version);
            IPicklistRoleStateCreated e = NewPicklistRoleStateCreated(stateEventId);
            var s = outerState.PicklistRoles.Get(c.PartyRoleId, true);

            e.Active = c.Active;

            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();
            return(e);
        }// END Map(ICreate... ////////////////////////////
Exemplo n.º 2
0
 void ICreatePicklistRoleCommands.Remove(ICreatePicklistRole c)
 {
     _innerCommands.Remove((CreatePicklistRoleDto)c);
 }
Exemplo n.º 3
0
 void ICreatePicklistRoleCommands.Add(ICreatePicklistRole c)
 {
     _innerCommands.Add((CreatePicklistRoleDto)c);
 }
Exemplo n.º 4
0
 public void Remove(ICreatePicklistRole c)
 {
     _innerCommands.Remove(c);
 }
Exemplo n.º 5
0
 public void Add(ICreatePicklistRole c)
 {
     _innerCommands.Add(c);
 }