コード例 #1
0
        public IPagedList <BagtotheFutureEntry> Get([FromUri] BagtotheFutureEntryQueryOptions options)
        {
            var data = service.GetBagtotheFutureEntries().AsQueryable().AsExpandable()
                       .Where(options.BuildPredicate()).OrderByDescending(x => x.CreateDate);

            return(new SerializablePagedList <BagtotheFutureEntry>(data, options.Page, options.PageSize));
        }
コード例 #2
0
        public void ExcelDownload(BagtotheFutureEntryQueryOptions options)
        {
            var entry = service.GetBagtotheFutureEntries().AsQueryable().AsExpandable()
                        .Where(options.BuildPredicate()).OrderByDescending(x => x.CreateDate).Select(x => new {
                참여일    = x.CreateDate,
                채널     = x.Channel,
                아이피주소  = x.IpAddress,
                이름     = x.Name,
                연락처    = x.Mobile,
                이메일    = x.Email,
                아이디어명  = x.IdeaName,
                아이디어설명 = x.IdeaDescription,
                첨부파일   = x.File
            });

            common.ExcelDownLoad(entry, "bag-to-the-future-event01-entry");
        }