protected virtual IUomConversionStateDeleted Map(IDeleteUomConversion c) { var stateEventId = new UomConversionEventId(c.UomConversionId, c.Version); IUomConversionStateDeleted e = NewUomConversionStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
void IUomConversionApplicationService.When(IDeleteUomConversion c) { this.When((DeleteUomConversionDto)c); }
public virtual void Delete(IDeleteUomConversion c) { IUomConversionStateDeleted e = Map(c); Apply(e); }
public virtual void When(IDeleteUomConversion c) { Update(c, ar => ar.Delete(c)); }