public void Download(DisneyStarWars2018QueryOptions option) { var entry = service.GetAdminDisneyStarWars2018InstatLotteryList(option).ToList(); var data = entry.Select(e => new { 당첨일 = e.CreateDate, 채널 = e.ChannelName, IP = e.IpAddress, 이름 = e.Name, 연락처 = e.Mobile, 우편번호 = e.ZipCode, 주소 = e.Address, 상세주소 = e.AddressDetail, 경품 = e.PrizeName, 개인정보등록일 = e.UpdateDate }); string fileName = DateTime.Now.ToString("yyyyMMddhhmmss_") + "디즈니_스타워즈_참여자리스트"; common.ExcelDownLoad(data, fileName); }
public IPagedList <DisneyStarWars2018InstantLottery> GetAdminDisneyStarWars2018InstatLotteryList([FromUri] DisneyStarWars2018QueryOptions options) { var result = service.GetAdminDisneyStarWars2018InstatLotteryList(options); return(new SerializablePagedList <DisneyStarWars2018InstantLottery>(result, options.Page, options.PageSize)); }