Class CommonSettingsManager

Implements operations for the settings manager.

Inheritance
System.Object
CommonSettingsManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Core.Managers
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public static class CommonSettingsManager

Methods

GetDefaultCurrency()

Gets the default currency.

Declaration
public static Currency GetDefaultCurrency()
Returns
Type Description
Currency

GetDefaultLanguage()

Gets the default language.

Declaration
public static string GetDefaultLanguage()
Returns
Type Description
System.String

GetDefaultLength()

Gets the default length.

Declaration
public static string GetDefaultLength()
Returns
Type Description
System.String

GetDefaultWeight()

Gets the default weight.

Declaration
public static string GetDefaultWeight()
Returns
Type Description
System.String

GetSettingById(Int32)

Gets the setting by id.

Declaration
public static SettingsDto GetSettingById(int settingId)
Parameters
Type Name Description
System.Int32 settingId
Returns
Type Description
SettingsDto

GetSettingByName(CommonSettingsManager.SettingsNames)

Gets the setting by name.

Declaration
public static SettingsDto GetSettingByName(CommonSettingsManager.SettingsNames settingName)
Parameters
Type Name Description
CommonSettingsManager.SettingsNames settingName
Returns
Type Description
SettingsDto

GetSettingsDto()

Gets the settings dto.

Declaration
public static SettingsDto GetSettingsDto()
Returns
Type Description
SettingsDto

SaveSettings(SettingsDto)

Saves the settings.

Declaration
public static void SaveSettings(SettingsDto dto)
Parameters
Type Name Description
SettingsDto dto

The dto.