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); }
void IShipmentMethodTypeApplicationService.When(IDeleteShipmentMethodType c) { this.When((DeleteShipmentMethodTypeDto)c); }
public virtual void Delete(IDeleteShipmentMethodType c) { IShipmentMethodTypeStateDeleted e = Map(c); Apply(e); }
public virtual void When(IDeleteShipmentMethodType c) { Update(c, ar => ar.Delete(c)); }