예제 #1
0
        public void UserExcelDownload(AdminFindingDory2017QueryOptions options)
        {
            var query = service.GetUser(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.Address,
                상세주소 = e.AddressDetail,
                우편번호 = e.ZipCode,
                나이   = e.Age
            }).ToList();

            common.ExcelDownLoad(data, "[2017 도리를찾아서 이벤트] 참여자_" + DateTime.Now.ToString("yyyyMMddHHmmss"));
        }
예제 #2
0
        public PagedList.IPagedList <FindingDory2017User> GetFindingDory2017UserList([FromUri] AdminFindingDory2017QueryOptions options)
        {
            var users = service.GetUser(options).OrderByDescending(x => x.CreateDate);

            return(new SerializablePagedList <FindingDory2017User>(users, options.Page, options.PageSize));
        }