Class PeriodService
- Namespace
- Dynamicweb.Ecommerce.Products
- Assembly
- Dynamicweb.Ecommerce.dll
public class PeriodService : ICacheStorage<string, Period>, ICacheStorage<string>, ICacheStorage
- Inheritance
-
PeriodService
- Implements
- Inherited Members
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
public void ClearCache()
Delete(Period)
Deletes a given instance of Period.
public void Delete(Period period)
Parameters
GetAllPeriods()
Gets all periods - including hidden periods.
public IEnumerable<Period> GetAllPeriods()
Returns
GetHiddenPeriods()
Gets all hidden periods.
public IEnumerable<Period> GetHiddenPeriods()
Returns
GetPeriodById(string)
Gets a period by id
public Period GetPeriodById(string periodId)
Parameters
periodId
string- Period id
Returns
GetPeriods()
Gets all periods, except hidden periods.
public IEnumerable<Period> GetPeriods()
Returns
GetPeriods(bool)
Gets all periods with Active matching the value of
active
, except hidden periods.public IEnumerable<Period> GetPeriods(bool active)
Parameters
active
bool- Active state
Returns
Save(Period)
Saves a given instance of Period.
public void Save(Period period)