/// <summary> /// Gets the URL for the given cdrID. /// Returns the URL with the friendly-name if found, otherwise with the CDRID. /// </summary> public string GetSitemapUrl(DictionaryInfo info, string cdrId) { NciUrl url = new NciUrl(); url.SetUrl(_rootUrl); url.AppendPathSegment(info.DefinitionUrl); url.AppendPathSegment(GetFriendlyName(info, cdrId)); return(_rootUrl + url.ToString()); }
/// <summary> /// Gets the friendly name of the given CDRID, if it exists. /// Otherwise, returns the CDRID. /// </summary> public string GetSitemapUrl(string nciid) { NciUrl url = new NciUrl(); url.SetUrl(_rootUrl); url.AppendPathSegment(_config.DetailedViewPagePrettyUrl); url.QueryParameters.Add("id", nciid); return(_rootUrl + url.ToString()); }