Table of Contents

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

period Period
An instance of Period which should be deleted

GetAllPeriods()

Gets all periods - including hidden periods.
public IEnumerable<Period> GetAllPeriods()

Returns

IEnumerable<Period>

GetHiddenPeriods()

Gets all hidden periods.
public IEnumerable<Period> GetHiddenPeriods()

Returns

IEnumerable<Period>

GetPeriodById(string)

Gets a period by id
public Period GetPeriodById(string periodId)

Parameters

periodId string
Period id

Returns

Period

GetPeriods()

Gets all periods, except hidden periods.
public IEnumerable<Period> GetPeriods()

Returns

IEnumerable<Period>

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

IEnumerable<Period>

Save(Period)

Saves a given instance of Period.
public void Save(Period period)

Parameters

period Period
An instance of Period which should be saved
To top