/// <summary> /// Retrieves list of navigation breadcrumbs for the specified breadcrumb collection. /// </summary> /// <param name="breadcrumbsId">Identifies the breadcrumbs collection that is returned.</param> /// <returns>Breadcrumb navigation.</returns> public List <Breadcrumb> GetBreadcrumbs(string breadcrumbsId) { // Get dictionary containing lists of breadcumbs string key = _controlConfigurationService.GetBreadcrumbsKey(); Dictionary <string, List <Breadcrumb> > breadcrumbsDict = _webHelperService.GetItem <Dictionary <string, List <Breadcrumb> > >(key); if (breadcrumbsDict == null) { breadcrumbsDict = new Dictionary <string, List <Breadcrumb> >(); _webHelperService.SetItem <Dictionary <string, List <Breadcrumb> > >(key, breadcrumbsDict); } // Get list of breadcrumbs for the specified id if (!breadcrumbsDict.ContainsKey(breadcrumbsId)) { breadcrumbsDict.Add(breadcrumbsId, new List <Breadcrumb>()); } return(breadcrumbsDict[breadcrumbsId]); }