protected virtual IMovementConfirmationLineMvoStateDeleted Map(IDeleteMovementConfirmationLineMvo c) { var stateEventId = new MovementConfirmationLineMvoEventId(c.MovementConfirmationLineId, c.MovementConfirmationVersion); IMovementConfirmationLineMvoStateDeleted e = NewMovementConfirmationLineMvoStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
void IMovementConfirmationLineMvoApplicationService.When(IDeleteMovementConfirmationLineMvo c) { this.When((DeleteMovementConfirmationLineMvoDto)c); }
public virtual void Delete(IDeleteMovementConfirmationLineMvo c) { IMovementConfirmationLineMvoStateDeleted e = Map(c); Apply(e); }
public virtual void When(IDeleteMovementConfirmationLineMvo c) { Update(c, ar => ar.Delete(c)); }