Class DefaultCustomColumnSettingsService
Default implement of ICustom
Inheritance
System.Object
DefaultCustomColumnSettingsService
Implements
Namespace: EPiServer.Commerce.CustomColumnSetting.Internal
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0Syntax
public class DefaultCustomColumnSettingsService : Object, ICustomColumnSettingsService
Constructors
DefaultCustomColumnSettingsService(CustomColumnSettingsDB)
Initializes a new instance of the Default
Declaration
public DefaultCustomColumnSettingsService(CustomColumnSettingsDB customColumnSettingsDB)
Parameters
Type | Name | Description |
---|---|---|
Custom |
customColumnSettingsDB | The custom column settings. |
Methods
GetCustomColumnSettings(Int32, String)
Gets the custom column settings.
Declaration
public IEnumerable<CustomColumnSettings> GetCustomColumnSettings(int viewId, string userName)
Parameters
Type | Name | Description |
---|---|---|
System. |
viewId | The view id. |
System. |
userName | The username. |
Returns
Type | Description |
---|---|
System. |
A list of custom column settings. |
SaveCustomColumnSettings(Int32, String, IEnumerable<CustomColumnSettings>)
Saves a list of custom column settings.
Declaration
public void SaveCustomColumnSettings(int viewId, string userName, IEnumerable<CustomColumnSettings> customColumnSettings)
Parameters
Type | Name | Description |
---|---|---|
System. |
viewId | The view id. |
System. |
userName | The username. |
System. |
customColumnSettings | A list of custom column settings. |