예제 #1
0
        protected virtual IShipmentMethodTypeStateCreated Map(ICreateShipmentMethodType c)
        {
            var stateEventId = new ShipmentMethodTypeEventId(c.ShipmentMethodTypeId, c.Version);
            IShipmentMethodTypeStateCreated e = NewShipmentMethodTypeStateCreated(stateEventId);

            e.Description = c.Description;
            e.SequenceNum = c.SequenceNum;
            e.Active      = c.Active;
            e.CommandId   = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();
            var version = c.Version;


            return(e);
        }
예제 #2
0
 void IShipmentMethodTypeApplicationService.When(ICreateShipmentMethodType c)
 {
     this.When((CreateShipmentMethodTypeDto)c);
 }
예제 #3
0
        public virtual void Create(ICreateShipmentMethodType c)
        {
            IShipmentMethodTypeStateCreated e = Map(c);

            Apply(e);
        }
 public virtual void When(ICreateShipmentMethodType c)
 {
     Update(c, ar => ar.Create(c));
 }