Class DefaultCustomColumnSettingsService
Default implement of ICustomColumnSettingsService.
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 DefaultCustomColumnSettingsService class.
Declaration
public DefaultCustomColumnSettingsService(CustomColumnSettingsDB customColumnSettingsDB)
Parameters
Type | Name | Description |
---|---|---|
CustomColumnSettingsDB | 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.Int32 | viewId | The view id. |
System.String | userName | The username. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<CustomColumnSettings> | 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.Int32 | viewId | The view id. |
System.String | userName | The username. |
System.Collections.Generic.IEnumerable<CustomColumnSettings> | customColumnSettings | A list of custom column settings. |