Class CountryManager

Country 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
CountryManager
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 CountryManager

Methods

GetCountries()

Returns all visible countries and regions.

Declaration
public static CountryDto GetCountries()
Returns
Type Description
CountryDto

GetCountries(Boolean)

Gets the countries.

Declaration
public static CountryDto GetCountries(bool returnInactive)
Parameters
Type Name Description
System.Boolean returnInactive

If true, all countries will be returned, otherwise only visible.

Returns
Type Description
CountryDto

GetCountry(Int32, Boolean)

Gets the country by id.

Declaration
public static CountryDto GetCountry(int countryId, bool returnInactive)
Parameters
Type Name Description
System.Int32 countryId

Id of the country.

System.Boolean returnInactive

If true, all regions will be returned, otherwise only visible.

Returns
Type Description
CountryDto

GetCountry(String, Boolean)

Gets the country by code.

Declaration
public static CountryDto GetCountry(string code, bool returnInactive)
Parameters
Type Name Description
System.String code

Country code.

System.Boolean returnInactive

If true, all regions will be returned, otherwise only visible.

Returns
Type Description
CountryDto

SaveCountry(CountryDto)

Saves changes in CountryDto. Not implemented!

Declaration
public static void SaveCountry(CountryDto dto)
Parameters
Type Name Description
CountryDto dto

The dto.