Exemplo n.º 1
0
        protected virtual IShipmentMethodTypeStateDeleted Map(IDeleteShipmentMethodType c)
        {
            var stateEventId = new ShipmentMethodTypeEventId(c.ShipmentMethodTypeId, c.Version);
            IShipmentMethodTypeStateDeleted e = NewShipmentMethodTypeStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


            return(e);
        }
Exemplo n.º 2
0
 void IShipmentMethodTypeApplicationService.When(IDeleteShipmentMethodType c)
 {
     this.When((DeleteShipmentMethodTypeDto)c);
 }
Exemplo n.º 3
0
        public virtual void Delete(IDeleteShipmentMethodType c)
        {
            IShipmentMethodTypeStateDeleted e = Map(c);

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