Example #1
0
        public void Download(TWorldRouletteEventQueryOptions option)
        {
            var entry = service.GetAdminTWorldRouletteEventEntryList(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_") + "TWorld_룰렛이벤트_참여자리스트";

            common.ExcelDownLoad(data, fileName);
        }
Example #2
0
        public IPagedList <TWorldRouletteEventEntry> GetAdminTWorldRouletteEventEntryList([FromUri] TWorldRouletteEventQueryOptions option)
        {
            var result = service.GetAdminTWorldRouletteEventEntryList(option);

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