public string GetUrl(URLTypeCodeType urlTypeCodeType, string param1) { UrlLink link = this.FirstOrDefault(u => u.UrlType == urlTypeCodeType); if (link == null) { return(null); } return(String.Format("{0}{1}", link.Url, param1)); }
public string GetUrl(URLTypeCodeType urlTypeCodeType) { UrlLink link = this.FirstOrDefault(u => u.UrlType == urlTypeCodeType); if (link == null) { return(null); } return(link.Url); }
/// <summary> /// /// </summary> public URLDetailsType getURLDetailsBySiteAndURLType(SiteCodeType site, URLTypeCodeType URLType) { Hashtable detailsMap = (Hashtable)_SiteRelatedDetailsMapsByName[DetailNameCodeType.URLDetails]; if (!detailsMap.ContainsKey(site)) { loadURLDetailsForSite(site); } Hashtable byURLTypeMap = (Hashtable)detailsMap[site]; return((URLDetailsType)byURLTypeMap[URLType]); }
/// <summary> /// /// </summary> public URLDetailsType getURLDetailsBySiteAndURLType(SiteCodeType site, URLTypeCodeType URLType) { Hashtable detailsMap = (Hashtable)_SiteRelatedDetailsMapsByName[DetailNameCodeType.URLDetails]; if(!detailsMap.ContainsKey(site)) { loadURLDetailsForSite(site); } Hashtable byURLTypeMap = (Hashtable)detailsMap[site]; return (URLDetailsType)byURLTypeMap[URLType]; }