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); }
public virtual void When(IDeleteRejectionReason c) { Update(c, ar => ar.Delete(c)); }
public virtual void Delete(IDeleteRejectionReason c) { IRejectionReasonStateDeleted e = Map(c); Apply(e); }
void IRejectionReasonApplicationService.When(IDeleteRejectionReason c) { this.When((DeleteRejectionReasonDto)c); }