protected virtual IShipmentMethodTypeStateCreated Map(ICreateShipmentMethodType c) { var stateEventId = new ShipmentMethodTypeEventId(c.ShipmentMethodTypeId, c.Version); IShipmentMethodTypeStateCreated e = NewShipmentMethodTypeStateCreated(stateEventId); e.Description = c.Description; e.SequenceNum = c.SequenceNum; e.Active = c.Active; e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); var version = c.Version; return(e); }
void IShipmentMethodTypeApplicationService.When(ICreateShipmentMethodType c) { this.When((CreateShipmentMethodTypeDto)c); }
public virtual void Create(ICreateShipmentMethodType c) { IShipmentMethodTypeStateCreated e = Map(c); Apply(e); }
public virtual void When(ICreateShipmentMethodType c) { Update(c, ar => ar.Create(c)); }