Beispiel #1
0
        public IPagedList <BagtotheFutureSnsUser> Get([FromUri] BagtotheFutureSnsUserQueryOptions options)
        {
            var data = service.GetBagtotheFutureSnsUsers().AsQueryable().AsExpandable()
                       .Where(options.BuildPredicate()).OrderByDescending(x => x.CreateDate);

            return(new SerializablePagedList <BagtotheFutureSnsUser>(data, options.Page, options.PageSize));
        }
Beispiel #2
0
        public void ExcelDownloadSnsUser(BagtotheFutureSnsUserQueryOptions options)
        {
            var entry = service.GetBagtotheFutureSnsUsers().AsQueryable().AsExpandable()
                        .Where(options.BuildPredicate()).OrderByDescending(x => x.CreateDate).Select(x => new {
                참여일   = x.CreateDate,
                채널    = x.Channel,
                아이피주소 = x.IpAddress,
                이름    = x.Name,
                연락처   = x.Mobile
            });

            common.ExcelDownLoad(entry, "bag-to-the-future-event02-user");
        }