protected virtual IShipmentReceiptImageStateCreated MapCreate(ICreateShipmentReceiptImage c, IShipmentReceiptCommand outerCommand, long version, IShipmentReceiptState outerState) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new ShipmentReceiptImageEventId(c.ShipmentId, c.ShipmentReceiptReceiptSeqId, c.SequenceId, version); IShipmentReceiptImageStateCreated e = NewShipmentReceiptImageStateCreated(stateEventId); var s = outerState.ShipmentReceiptImages.Get(c.SequenceId, true); e.Url = c.Url; e.Active = c.Active; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }// END Map(ICreate... ////////////////////////////
public void Remove(ICreateShipmentReceiptImage c) { _innerCommands.Remove(c); }
public void Add(ICreateShipmentReceiptImage c) { _innerCommands.Add(c); }
void ICreateShipmentReceiptImageCommands.Remove(ICreateShipmentReceiptImage c) { _innerCommands.Remove((CreateShipmentReceiptImageDto)c); }