예제 #1
0
        public void Download()
        {
            var entry = service.FilterTmapEventEntry(new TmapEventEntryQueryOptions {
                Page = 1, PageSize = int.MaxValue
            })
                        .OrderByDescending(x => x.CreateDate).Select(x => new {
                채널  = x.IsMobileDevice ? "mobile" : "web",
                이름  = x.Name,
                휴대폰 = x.Phone,
                참여일 = x.CreateDate
            });

            common.ExcelDownLoad(entry, "tmap-event-entry");
        }
예제 #2
0
        public IPagedList <TmapEventEntry> Get([FromUri] TmapEventEntryQueryOptions options)
        {
            var data = service.FilterTmapEventEntry(options);

            return(new SerializablePagedList <TmapEventEntry>(data, options.Page, options.PageSize));
        }