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); }
public virtual void When(IDeleteOrderRoleMvo c) { Update(c, ar => ar.Delete(c)); }
public virtual void Delete(IDeleteOrderRoleMvo c) { IOrderRoleMvoStateDeleted e = Map(c); Apply(e); }
void IOrderRoleMvoApplicationService.When(IDeleteOrderRoleMvo c) { this.When((DeleteOrderRoleMvoDto)c); }