public string getGroupList()
        {
            string sList = "";

            foreach (var group in getGroups())
            {
                GroupLookup gl = new GroupLookup();
                gl.populateFromOrg(group);
                sList += replaceAndWrite(gl);
            }

            return(sList);
        }
        public string replaceAndWrite(GroupLookup gl)
        {
            string temp = HttpUtility.HtmlDecode(string.Copy(sTemplate));

            foreach (var item in gl.values)
            {
                temp = temp.Replace("[" + item.Key + "]", item.Value);
            }

            temp = Regex.Replace(temp, GroupLookup.PATTERN_CLEAN, "");

            return(temp);
        }
        public string replaceAndWrite(GroupLookup gl)
        {
            var temp = HttpUtility.HtmlDecode(string.Copy(_template));

            foreach (var item in gl.values)
            {
                temp = temp.Replace("[" + item.Key + "]", item.Value);
            }

            temp = Regex.Replace(temp, GroupLookup.PATTERN_CLEAN, "");

            return temp;
        }
        public string getGroupList()
        {
            var sList = "";

            foreach (var group in getGroups().Organizations)
            {
                var gl = new GroupLookup();
                gl.populateFromOrg(group);
                sList += replaceAndWrite(gl);
            }

            return sList;
        }