protected virtual IMovementTypeStateDeleted Map(IDeleteMovementType c) { var stateEventId = new MovementTypeEventId(c.MovementTypeId, c.Version); IMovementTypeStateDeleted e = NewMovementTypeStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
void IMovementTypeApplicationService.When(IDeleteMovementType c) { this.When((DeleteMovementTypeDto)c); }
public virtual void Delete(IDeleteMovementType c) { IMovementTypeStateDeleted e = Map(c); Apply(e); }
public virtual void When(IDeleteMovementType c) { Update(c, ar => ar.Delete(c)); }