Class UnitOfMeasureService
- Namespace
- Dynamicweb.Ecommerce.Stocks
- Assembly
- Dynamicweb.Ecommerce.dll
public class UnitOfMeasureService : ICacheStorage<string, List<UnitOfMeasure>>, ICacheStorage<string>, ICacheStorage
- Inheritance
-
Unit
OfMeasure Service
- Implements
- Inherited Members
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
ClearCache(IEnumerable<string>)
Resets the specified keys to the default value for objects stored in the object cache
Parameters
keys
IEnumerable<string>Keys to reset
ClearCache(string)
Resets the specified key to the default value for objects stored in the object cache
Parameters
key
stringKey to reset
Delete(UnitOfMeasure)
Deletes the unit of measure.
Parameters
unitOfMeasure
UnitOfMeasure The unit of measure.
GetUnitOfMeasures(string)
Gets unit of measure by a product identifier.
Parameters
productId
stringThe product identifier.
Returns
- IEnumerable<Unit
OfMeasure > The products units of measure
Save(UnitOfMeasure)
Saves the unit of measure.
Parameters
unitOfMeasure
UnitOfMeasure The unit of measuret.