public void Download(TRouletteEventQueryOptions option) { var entry = service.GetAdminTRouletteEventEntryList(option).ToList(); var data = entry.Select(e => new { 채널 = e.ChannelName, IP = e.IpAddress, 이름 = e.Name, 휴대폰 = e.Mobile, 개인정보등록일 = e.CreateDate, 경품 = e.PrizeName, 당첨일 = e.UpdateDate }); string fileName = DateTime.Now.ToString("yyyyMMddhhmmss_") + "T_룰렛이벤트_참여자리스트"; common.ExcelDownLoad(data, fileName); }
public IPagedList <TRouletteEventEntry> GetAdminTRouletteEventEntryList([FromUri] TRouletteEventQueryOptions option) { var result = service.GetAdminTRouletteEventEntryList(option); return(new SerializablePagedList <TRouletteEventEntry>(result, option.Page, option.PageSize)); }