protected virtual IOrderShipGroupMvoStateDeleted Map(IDeleteOrderShipGroupMvo c) { var stateEventId = new OrderShipGroupMvoEventId(c.OrderShipGroupId, c.OrderVersion); IOrderShipGroupMvoStateDeleted e = NewOrderShipGroupMvoStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
public virtual void When(IDeleteOrderShipGroupMvo c) { Update(c, ar => ar.Delete(c)); }
public virtual void Delete(IDeleteOrderShipGroupMvo c) { IOrderShipGroupMvoStateDeleted e = Map(c); Apply(e); }
void IOrderShipGroupMvoApplicationService.When(IDeleteOrderShipGroupMvo c) { this.When((DeleteOrderShipGroupMvoDto)c); }