protected virtual IDocumentTypeStateDeleted Map(IDeleteDocumentType c) { var stateEventId = new DocumentTypeEventId(c.DocumentTypeId, c.Version); IDocumentTypeStateDeleted e = NewDocumentTypeStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
public virtual void When(IDeleteDocumentType c) { Update(c, ar => ar.Delete(c)); }
void IDocumentTypeApplicationService.When(IDeleteDocumentType c) { this.When((DeleteDocumentTypeDto)c); }
public virtual void Delete(IDeleteDocumentType c) { IDocumentTypeStateDeleted e = Map(c); Apply(e); }