ToPageContentList() public static méthode

public static ToPageContentList ( IEnumerable entities ) : IEnumerable
entities IEnumerable
Résultat IEnumerable
        public IEnumerable <PageContent> FindPageContentsByPageId(int pageId)
        {
            List <PageContentEntity> entities = PageContents.Where(p => p.Page.Id == pageId).ToList();

            return(FromEntity.ToPageContentList(entities));
        }
        public IEnumerable <PageContent> GetPageContentByEditedBy(string username)
        {
            List <PageContentEntity> entities = PageContents.Where(p => p.EditedBy == username).ToList();

            return(FromEntity.ToPageContentList(entities));
        }
        public IEnumerable <PageContent> AllPageContents()
        {
            List <PageContentEntity> entities = PageContents.ToList();

            return(FromEntity.ToPageContentList(entities));
        }