ToPageList() public static méthode

public static ToPageList ( IEnumerable entities ) : IEnumerable
entities IEnumerable
Résultat IEnumerable
        public IEnumerable <Page> FindPagesModifiedBy(string username)
        {
            List <PageEntity> entities = Pages.Where(p => p.ModifiedBy == username).ToList();

            return(FromEntity.ToPageList(entities));
        }
        public IEnumerable <Page> FindPagesContainingTag(string tag)
        {
            IEnumerable <PageEntity> entities = Pages.Where(p => p.Tags.ToLower().Contains(tag.ToLower()));            // Lightspeed doesn't support ToLowerInvariant

            return(FromEntity.ToPageList(entities));
        }
        public IEnumerable <Page> AllPages()
        {
            List <PageEntity> entities = Pages.ToList();

            return(FromEntity.ToPageList(entities));
        }