protected virtual IMovementConfirmationStateDeleted Map(IDeleteMovementConfirmation c) { var stateEventId = new MovementConfirmationEventId(c.DocumentNumber, c.Version); IMovementConfirmationStateDeleted e = NewMovementConfirmationStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
public virtual void Delete(IDeleteMovementConfirmation c) { IMovementConfirmationStateDeleted e = Map(c); Apply(e); }
void IMovementConfirmationApplicationService.When(IDeleteMovementConfirmation c) { this.When((DeleteMovementConfirmationDto)c); }
public virtual void When(IDeleteMovementConfirmation c) { Update(c, ar => ar.Delete(c)); }