Esempio n. 1
0
        public void Download(KittyJusticeLeagueQueryOptions option)
        {
            var entry = service.GetAdminKittyJusticeLeagueEntryList(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);
        }
Esempio n. 2
0
        public IPagedList <KittyJusticeLeagueInstantLottery> GetAdminKittyJusticeLeagueEntryList([FromUri] KittyJusticeLeagueQueryOptions option)
        {
            var result = service.GetAdminKittyJusticeLeagueEntryList(option);

            return(new SerializablePagedList <KittyJusticeLeagueInstantLottery>(result, option.Page, option.PageSize));
        }