Example #1
0
        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);
        }
Example #2
0
 public virtual void When(IDeleteInventoryPostingRule c)
 {
     Update(c, ar => ar.Delete(c));
 }
Example #3
0
 void IInventoryPostingRuleApplicationService.When(IDeleteInventoryPostingRule c)
 {
     this.When((DeleteInventoryPostingRuleDto)c);
 }
Example #4
0
        public virtual void Delete(IDeleteInventoryPostingRule c)
        {
            IInventoryPostingRuleStateDeleted e = Map(c);

            Apply(e);
        }