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

            Apply(e);
        }