예제 #1
0
        public IHttpActionResult Details()
        {
            var all = _coSettlementDeveloperAppDetailsService.FindAll("Id DESC").Select(x => x).ToList();
            var findByDeveloperId   = _coSettlementDeveloperAppDetailsService.FindPagedListByDeveloperId(3).Select(x => x).ToList();
            var findByDeveloperName = _coSettlementDeveloperAppDetailsService.FindPagedListByDeveloperName("技术测试").Select(x => x).ToList();

            return(Ok(new { all, findByDeveloperId, findByDeveloperName }));
        }
예제 #2
0
        public ActionResult Demo()
        {
            var pagedList = _coSettlementDeveloperAppDetailsService.FindAll("Id DESC");
            var gridModel = new DataSourceResult <Domain.CoSettlementDeveloperAppDetails>(pagedList)
            {
                Data = pagedList.Select(x => x)
            };

            return(View(gridModel));
        }