Example #1
0
        protected virtual IOrderRoleMvoStateDeleted Map(IDeleteOrderRoleMvo c)
        {
            var stateEventId            = new OrderRoleMvoEventId(c.OrderRoleId, c.OrderVersion);
            IOrderRoleMvoStateDeleted e = NewOrderRoleMvoStateDeleted(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(IDeleteOrderRoleMvo c)
 {
     Update(c, ar => ar.Delete(c));
 }
Example #3
0
        public virtual void Delete(IDeleteOrderRoleMvo c)
        {
            IOrderRoleMvoStateDeleted e = Map(c);

            Apply(e);
        }
 void IOrderRoleMvoApplicationService.When(IDeleteOrderRoleMvo c)
 {
     this.When((DeleteOrderRoleMvoDto)c);
 }