示例#1
0
        public void Download(Pororo2018QueryOptions option)
        {
            var entry = service.GetAdminPororo2018InstatLotteryList(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);
        }
示例#2
0
        public IPagedList <Pororo2018InstantLottery> GetAdminPororo2018InstatLotteryList([FromUri] Pororo2018QueryOptions options)
        {
            var result = service.GetAdminPororo2018InstatLotteryList(options);

            return(new SerializablePagedList <Pororo2018InstantLottery>(result, options.Page, options.PageSize));
        }