CmsWeb.Areas.OnlineReg.Models.OnlineRegModel.GetMasterOrgSettings C# (CSharp) Method

GetMasterOrgSettings() private method

private GetMasterOrgSettings ( ) : Settings
return Settings
        private Settings GetMasterOrgSettings()
        {
            if (_masterSettings != null)
                return _masterSettings;
            if (masterorgid == null)
                throw new Exception("masterorgid was null in SendConfirmation");
            if (settings == null)
                throw new Exception("settings was null");
            if (!settings.ContainsKey(masterorgid.Value))
                throw new Exception("setting not found for masterorgid " + masterorgid.Value);
            ParseSettings();
            return _masterSettings = settings[masterorgid.Value];
        }