Migrating Catalog Library
In the old days you could access CatalogLibrary via a static accessor:
//CatalogLibrary in Ucommerce 8 UCommerce.Api.CatalogLibrary
To grab the new CatalogLibrary use the DI Container:
using Ucommerce.Api; using Ucommerce.Infrastructure;
The catalogLibrary has been slimmed down, and input and return models are no longer backed by UCommerce.EntitiesV2 (NHibernate entities).
Instead they return Search models found under
The only exception to this is the price calculation which remains the same.