protected virtual IShipmentMethodTypeStateMergePatched Map(IMergePatchShipmentMethodType c) { var stateEventId = new ShipmentMethodTypeEventId(c.ShipmentMethodTypeId, c.Version); IShipmentMethodTypeStateMergePatched e = NewShipmentMethodTypeStateMergePatched(stateEventId); e.Description = c.Description; e.SequenceNum = c.SequenceNum; e.Active = c.Active; e.IsPropertyDescriptionRemoved = c.IsPropertyDescriptionRemoved; e.IsPropertySequenceNumRemoved = c.IsPropertySequenceNumRemoved; e.IsPropertyActiveRemoved = c.IsPropertyActiveRemoved; 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(IMergePatchShipmentMethodType c) { this.When((MergePatchShipmentMethodTypeDto)c); }
public virtual void MergePatch(IMergePatchShipmentMethodType c) { IShipmentMethodTypeStateMergePatched e = Map(c); Apply(e); }
public virtual void When(IMergePatchShipmentMethodType c) { Update(c, ar => ar.MergePatch(c)); }