ToPageContentList() public static method

public static ToPageContentList ( IEnumerable entities ) : IEnumerable
entities IEnumerable
return IEnumerable
コード例 #1
0
        public IEnumerable <PageContent> FindPageContentsByPageId(int pageId)
        {
            List <PageContentEntity> entities = PageContents.Where(p => p.Page.Id == pageId).ToList();

            return(FromEntity.ToPageContentList(entities));
        }
コード例 #2
0
        public IEnumerable <PageContent> GetPageContentByEditedBy(string username)
        {
            List <PageContentEntity> entities = PageContents.Where(p => p.EditedBy == username).ToList();

            return(FromEntity.ToPageContentList(entities));
        }
コード例 #3
0
        public IEnumerable <PageContent> AllPageContents()
        {
            List <PageContentEntity> entities = PageContents.ToList();

            return(FromEntity.ToPageContentList(entities));
        }