protected virtual IMovementStateDeleted Map(IDeleteMovement c) { var stateEventId = new MovementEventId(c.DocumentNumber, c.Version); IMovementStateDeleted e = NewMovementStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
public virtual void When(IDeleteMovement c) { Update(c, ar => ar.Delete(c)); }
void IMovementApplicationService.When(IDeleteMovement c) { this.When((DeleteMovementDto)c); }
public virtual void Delete(IDeleteMovement c) { IMovementStateDeleted e = Map(c); Apply(e); }