Пример #1
0
        public void ExcelDownload(MagicKinderAppLaunchingQueryOptions options)
        {
            var query = service.GetAdminMagicKinderAppLaunching(options).OrderByDescending(x => x.CreateDate).ToList();
            var data  = query.Select(e => new {
                참여일    = e.CreateDate.ToString("yyyy-MM-dd HH:mm:ss"),
                디바이스   = e.Channel,
                IP     = e.IpAddress,
                이름     = e.Name,
                연락처    = e.Mobile,
                우편번호   = e.ZipCode,
                주소     = e.Address,
                상세주소   = e.AddressDetail,
                나이     = e.Age,
                스크린샷타입 = e.ScreenShotTypeDisplayName,
                한줄평    = e.Comment
            }).ToList();

            common.ExcelDownLoad(data, "[2017 매직킨더앱런칭 이벤트] 참여자_" + DateTime.Now.ToString("yyyyMMddHHmmss"));
        }
Пример #2
0
        public IPagedList <MagicKinderAppLaunching> GetAdminMagicKinderAppLaunching([FromUri] MagicKinderAppLaunchingQueryOptions options)
        {
            var result = service.GetAdminMagicKinderAppLaunching(options).OrderByDescending(x => x.CreateDate);

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