private List <dtoFolderItem> GetBreadCrumb(dtoDisplayRepositoryItem child, Boolean onlyAvailable, RepositoryType type, Int32 idCommunity = -1, Boolean removeDeleted = true) { List <dtoFolderItem> folders = new List <dtoFolderItem>(); dtoFolderItem folder = new dtoFolderItem() { Id = Id, FolderType = FolderType, Name = Name, IdentifierPath = IdentifierPath, TemplateUrl = RootObject.FolderUrlTemplate(Id, FolderType, IdentifierPath, type, idCommunity) }; folder.IsInCurrentPath = true; if (Father != null) { folders.AddRange(Father.GetBreadCrumb(this, onlyAvailable, type, idCommunity, removeDeleted)); } folders.Add(folder); return(folders); }