public BasicResponse <List <RequestInfo> > GetRequestList(RequestGetListRequest requestrequest)
        {
            var requestresponse = new BasicResponse <List <RequestInfo> >();

            requestrequest.PagerInfo.PageIndex = requestrequest.PagerInfo.PageIndex - 1;
            if (requestrequest.PagerInfo.PageIndex < 0)
            {
                requestrequest.PagerInfo.PageIndex = 0;
            }
            int rowcount          = 0;
            var requestModelLists = _Repository.GetRequestList(requestrequest.PagerInfo.PageIndex, requestrequest.PagerInfo.PageSize, out rowcount);
            var requestInfoLists  = new List <RequestInfo>();

            foreach (var item in requestModelLists)
            {
                var RequestInfo = ObjectConverter.Copy <RequestModel, RequestInfo>(item);
                requestInfoLists.Add(RequestInfo);
            }
            requestresponse.Data = requestInfoLists;
            return(requestresponse);
        }
Exemple #2
0
 public BasicResponse <List <RequestInfo> > GetRequestList(RequestGetListRequest requestrequest)
 {
     return(_requestService.GetRequestList(requestrequest));
 }
Exemple #3
0
        public BasicResponse <List <RequestInfo> > GetRequestList(RequestGetListRequest requestrequest)
        {
            var responseStr = HttpClientHelper.Post(Webapi + "/v1/Request/GetPageList?token=" + Token, JSONHelper.ToJSONString(requestrequest));

            return(JSONHelper.ParseJSONString <BasicResponse <List <RequestInfo> > >(responseStr));
        }