Beispiel #1
0
        public IEnumerable <CategoryDto> GetCategories(
            int siteId, int lft, int rgt,
            CategoryContainerOption categoryContainerOption)
        {
            ISite site = this._resp.GetSiteById(siteId);
            IEnumerable <ICategory> categories =
                site.GetCategories(lft, rgt, categoryContainerOption);
            CategoryDto dto;

            foreach (ICategory category in categories)
            {
                yield return(CategoryDto.ConvertFrom(category));
            }
        }