protected virtual IShipmentPackageContentStateCreated MapCreate(ICreateShipmentPackageContent c, IShipmentPackageCommand outerCommand, long version, IShipmentPackageState outerState) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new ShipmentPackageContentEventId(c.ShipmentPackageId, c.ShipmentItemSeqId, version); IShipmentPackageContentStateCreated e = NewShipmentPackageContentStateCreated(stateEventId); var s = outerState.ShipmentPackageContents.Get(c.ShipmentItemSeqId, true); e.Quantity = c.Quantity; e.SubProductId = c.SubProductId; e.SubProductQuantity = c.SubProductQuantity; e.Active = c.Active; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }// END Map(ICreate... ////////////////////////////
void ICreateShipmentPackageContentCommands.Remove(ICreateShipmentPackageContent c) { _innerCommands.Remove((CreateShipmentPackageContentDto)c); }
public void Remove(ICreateShipmentPackageContent c) { _innerCommands.Remove(c); }
public void Add(ICreateShipmentPackageContent c) { _innerCommands.Add(c); }