protected virtual IInventoryPostingRuleStateDeleted Map(IDeleteInventoryPostingRule c) { var stateEventId = new InventoryPostingRuleEventId(c.InventoryPostingRuleId, c.Version); IInventoryPostingRuleStateDeleted e = NewInventoryPostingRuleStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
public virtual void When(IDeleteInventoryPostingRule c) { Update(c, ar => ar.Delete(c)); }
void IInventoryPostingRuleApplicationService.When(IDeleteInventoryPostingRule c) { this.When((DeleteInventoryPostingRuleDto)c); }
public virtual void Delete(IDeleteInventoryPostingRule c) { IInventoryPostingRuleStateDeleted e = Map(c); Apply(e); }