CMS_Migration_Utility.formMigration.GetNodeID C# (CSharp) Method

GetNodeID() private method

private GetNodeID ( string webURL ) : string
webURL string
return string
        private string GetNodeID(string webURL)
        {
            string id = string.Empty;
            DBLookup lookup = new DBLookup();

            if (webURL.IndexOf("http://") != -1) webURL = webURL.Substring(webURL.IndexOf('/', "http://".Length + 1));

            //if (webURL.IndexOf("/index.html") != -1) webURL = webURL.Replace("/index.html", "");

            List<string> nodeURLs = lookup.PerformDBLookup(webURL);

            if (nodeURLs.Count > 0)
            {
                id = nodeURLs[0].Replace("node/", "");
            }

            return id;
        }