Class RoundingService
- Namespace
- Dynamicweb.Ecommerce.Prices
- Assembly
- Dynamicweb.Ecommerce.dll
public class RoundingService : ICacheStorage<string, Rounding>, ICacheStorage<string>, ICacheStorage
- Inheritance
-
RoundingService
- Implements
- Inherited Members
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
public void ClearCache()
Delete(Rounding)
Deletes a rounding
public void Delete(Rounding rounding)
Parameters
rounding
Rounding- Rounding instance to delete
GetRoundingById(string)
Gets a rounding by id
public Rounding GetRoundingById(string id)
Parameters
id
string- Identifier of the rounding
Returns
- Rounding
- Rounding instance, if found; otherwise, null.
GetRoundings()
Gets all roundings
public IEnumerable<Rounding> GetRoundings()
Returns
Save(Rounding)
Saves a rounding
public void Save(Rounding rounding)
Parameters
rounding
Rounding- Rounding instance to save