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"); }
public IPagedList <TmapEventEntry> Get([FromUri] TmapEventEntryQueryOptions options) { var data = service.FilterTmapEventEntry(options); return(new SerializablePagedList <TmapEventEntry>(data, options.Page, options.PageSize)); }