diff --git a/Basic/Types/BasicCountry.cs b/Basic/Types/BasicCountry.cs index b9b23a69..93ab7248 100644 --- a/Basic/Types/BasicCountry.cs +++ b/Basic/Types/BasicCountry.cs @@ -11,21 +11,21 @@ namespace Activizr.Basic.Types { public BasicCountry (int countryId, string name, string code) { - this.countryId = countryId; - this.name = name; - this.code = code; + this.CountryId = countryId; + this.Name = name; + this.Code = code; } public BasicCountry (int countryId, string name, string code, string defaultCulture) : this(countryId, name, code) { - this.culture = defaultCulture; + this.Culture = defaultCulture; } - public BasicCountry (int countryId, string name, string code, string defaultCulture, int geoId) + public BasicCountry (int countryId, string name, string code, string defaultCulture, int geographyId) : this(countryId, name, code, defaultCulture) { - this.geographyId = geoId; + this.GeographyId = geographyId; } public BasicCountry (BasicCountry original) @@ -39,32 +39,11 @@ namespace Activizr.Basic.Types // this does not initialize the Basic Country, but exists to enable serialization. } - public int CountryId - { - get { return countryId; } - } - - public string Name - { - get { return this.name; } - } - - public string Code - { - get { return this.code; } - } - - public string Culture - { - get { return this.culture; } - } - - public int GeographyId - { - get { return this.geographyId; } - } - - + public int CountryId { get; private set; } + public string Name { get; protected set; } + public string Code { get; protected set; } + public string Culture { get; protected set; } + public int GeographyId { get; protected set; } public int PostalCodeLength { get @@ -85,12 +64,6 @@ namespace Activizr.Basic.Types } - private int countryId; - private string name; - private string code; - private string culture; - private int geographyId; - public int CurrencyId { get diff --git a/Site5/Automation/web.config b/Site5/Automation/web.config index 5d6d878d..0468776d 100644 --- a/Site5/Automation/web.config +++ b/Site5/Automation/web.config @@ -1,6 +1,6 @@