protected virtual IShipmentPackageContentMvoStateDeleted Map(IDeleteShipmentPackageContentMvo c) { var stateEventId = new ShipmentPackageContentMvoEventId(c.ShipmentPackageContentId, c.ShipmentPackageVersion); IShipmentPackageContentMvoStateDeleted e = NewShipmentPackageContentMvoStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
void IShipmentPackageContentMvoApplicationService.When(IDeleteShipmentPackageContentMvo c) { this.When((DeleteShipmentPackageContentMvoDto)c); }
public virtual void When(IDeleteShipmentPackageContentMvo c) { Update(c, ar => ar.Delete(c)); }
public virtual void Delete(IDeleteShipmentPackageContentMvo c) { IShipmentPackageContentMvoStateDeleted e = Map(c); Apply(e); }