Ejemplo n.º 1
0
        public HttpResponseMessage GetProjectMasters([FromUri] ProjectMasterRequest request)
        {
            var result = _projectMaster.GetProjectMasters(request.isAdmin, request.startDate, request.completeDate, request.SubContractorId, request.projectCode, request.projectName, request.projectStatus, request.pageIndex,
                                                          request.pageSize);

            var list = new PageList <ProjectMaster>()
            {
                PageIndex  = result.PageIndex,
                PageSize   = result.PageSize,
                TotalCount = result.TotalCount,
                TotalPages = result.TotalPages,
                Data       = result.ToList()
            };

            return(toListJson(list, OperatingState.Success, "获取成功"));
        }