コード例 #1
0
        protected virtual IRejectionReasonStateDeleted Map(IDeleteRejectionReason c)
        {
            var stateEventId = new RejectionReasonEventId(c.RejectionReasonId, c.Version);
            IRejectionReasonStateDeleted e = NewRejectionReasonStateDeleted(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(IDeleteRejectionReason c)
 {
     Update(c, ar => ar.Delete(c));
 }
コード例 #3
0
        public virtual void Delete(IDeleteRejectionReason c)
        {
            IRejectionReasonStateDeleted e = Map(c);

            Apply(e);
        }
コード例 #4
0
 void IRejectionReasonApplicationService.When(IDeleteRejectionReason c)
 {
     this.When((DeleteRejectionReasonDto)c);
 }