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

            Apply(e);
        }