protected virtual IItemIssuanceMvoStateDeleted Map(IDeleteItemIssuanceMvo c) { var stateEventId = new ItemIssuanceMvoEventId(c.ShipmentItemIssuanceId, c.ShipmentVersion); IItemIssuanceMvoStateDeleted e = NewItemIssuanceMvoStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
void IItemIssuanceMvoApplicationService.When(IDeleteItemIssuanceMvo c) { this.When((DeleteItemIssuanceMvoDto)c); }
public virtual void When(IDeleteItemIssuanceMvo c) { Update(c, ar => ar.Delete(c)); }
public virtual void Delete(IDeleteItemIssuanceMvo c) { IItemIssuanceMvoStateDeleted e = Map(c); Apply(e); }