示例#1
0
        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));
 }
示例#3
0
 void IDocumentTypeApplicationService.When(IDeleteDocumentType c)
 {
     this.When((DeleteDocumentTypeDto)c);
 }
示例#4
0
        public virtual void Delete(IDeleteDocumentType c)
        {
            IDocumentTypeStateDeleted e = Map(c);

            Apply(e);
        }