Class JurisdictionManager

Jurisdiction manager acts as proxy between methods that call data layer functions and the facade layer. The methods here check if the appropriate security is set and that the data is cached.

Inheritance
System.Object
JurisdictionManager
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.Orders.Managers
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public static class JurisdictionManager

Methods

GetJurisdiction(Int32)

Calls GetJurisdiction(Int32, Boolean) with returnAllGroups = false

Declaration
public static JurisdictionDto GetJurisdiction(int jurisdictionId)
Parameters
Type Name Description
System.Int32 jurisdictionId

The jurisdictionId.

Returns
Type Description
JurisdictionDto

GetJurisdiction(Int32, Boolean)

Returns Jurisdiction by id.

Declaration
public static JurisdictionDto GetJurisdiction(int jurisdictionId, bool returnAllGroups)
Parameters
Type Name Description
System.Int32 jurisdictionId

The jurisdictionId.

System.Boolean returnAllGroups

True, to return all jurisdiction groups.

Returns
Type Description
JurisdictionDto

GetJurisdiction(String)

Calls GetJurisdiction(String, Boolean) with returnAllGroups = false

Declaration
public static JurisdictionDto GetJurisdiction(string code)
Parameters
Type Name Description
System.String code

The jurisdiction code.

Returns
Type Description
JurisdictionDto

GetJurisdiction(String, Boolean)

Returns Jurisdiction by code.

Declaration
public static JurisdictionDto GetJurisdiction(string code, bool returnAllGroups)
Parameters
Type Name Description
System.String code

The jurisdiction code.

System.Boolean returnAllGroups

True, to return all jurisdiction groups.

Returns
Type Description
JurisdictionDto

GetJurisdictionGroup(Int32)

Returns JurisdictionGroup by id.

Declaration
public static JurisdictionDto GetJurisdictionGroup(int jurisdictionGroupId)
Parameters
Type Name Description
System.Int32 jurisdictionGroupId

The JurisdictionGroupId.

Returns
Type Description
JurisdictionDto

GetJurisdictionGroup(String)

Returns JurisdictionGroup by code.

Declaration
public static JurisdictionDto GetJurisdictionGroup(string code)
Parameters
Type Name Description
System.String code

The JurisdictionGroup Code.

Returns
Type Description
JurisdictionDto

GetJurisdictionGroups(Nullable<JurisdictionManager.JurisdictionType>)

Returns jurisdiction groups.

Declaration
public static JurisdictionDto GetJurisdictionGroups(JurisdictionManager.JurisdictionType? jurisdictionType)
Parameters
Type Name Description
System.Nullable<JurisdictionManager.JurisdictionType> jurisdictionType

JurisdictionType. 1 - tax, 2 - shipping. null - all jurisdictions.

Returns
Type Description
JurisdictionDto

GetJurisdictions(Nullable<JurisdictionManager.JurisdictionType>)

Gets the jurisdictions and jurisdiction groups for the specified jurisdiction type.

Declaration
public static JurisdictionDto GetJurisdictions(JurisdictionManager.JurisdictionType? jurisdictionType)
Parameters
Type Name Description
System.Nullable<JurisdictionManager.JurisdictionType> jurisdictionType

JurisdictionType. 1 - tax, 2 - shipping. null - all jurisdictions.

Returns
Type Description
JurisdictionDto

SaveJurisdiction(JurisdictionDto)

Saves the jurisdiction.

Declaration
public static void SaveJurisdiction(JurisdictionDto dto)
Parameters
Type Name Description
JurisdictionDto dto

The dto.