Table of Contents

Class UnitOfMeasureService

Namespace
Dynamicweb.Ecommerce.Stocks
Assembly
Dynamicweb.Ecommerce.dll
public class UnitOfMeasureService : ICacheStorage<string, List<UnitOfMeasure>>, ICacheStorage<string>, ICacheStorage
Inheritance
UnitOfMeasureService
Implements
Inherited Members

Methods

ClearCache()

Resets all keys to the default value for objects stored in the object cache
public void ClearCache()

ClearCache(IEnumerable<string>)

Resets the specified keys to the default value for objects stored in the object cache
public void ClearCache(IEnumerable<string> keys)

Parameters

keys IEnumerable<string>
Keys to reset

ClearCache(string)

Resets the specified key to the default value for objects stored in the object cache
public void ClearCache(string key)

Parameters

key string
Key to reset

Delete(UnitOfMeasure)

Deletes the unit of measure.
public void Delete(UnitOfMeasure unitOfMeasure)

Parameters

unitOfMeasure UnitOfMeasure
The unit of measure.

GetUnitOfMeasures(string)

Gets unit of measure by a product identifier.
public IEnumerable<UnitOfMeasure> GetUnitOfMeasures(string productId)

Parameters

productId string
The product identifier.

Returns

IEnumerable<UnitOfMeasure>
The products units of measure

Save(UnitOfMeasure)

Saves the unit of measure.
public void Save(UnitOfMeasure unitOfMeasure)

Parameters

unitOfMeasure UnitOfMeasure
The unit of measuret.
To top