protected virtual IGoodIdentificationMvoStateDeleted Map(IDeleteGoodIdentificationMvo c) { var stateEventId = new GoodIdentificationMvoEventId(c.ProductGoodIdentificationId, c.ProductVersion); IGoodIdentificationMvoStateDeleted e = NewGoodIdentificationMvoStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
void IGoodIdentificationMvoApplicationService.When(IDeleteGoodIdentificationMvo c) { this.When((DeleteGoodIdentificationMvoDto)c); }
public virtual void Delete(IDeleteGoodIdentificationMvo c) { IGoodIdentificationMvoStateDeleted e = Map(c); Apply(e); }
public virtual void When(IDeleteGoodIdentificationMvo c) { Update(c, ar => ar.Delete(c)); }