Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public IPagedList <TRouletteEventEntry> GetAdminTRouletteEventEntryList([FromUri] TRouletteEventQueryOptions option)
        {
            var result = service.GetAdminTRouletteEventEntryList(option);

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