public BasicResponse <List <GraphicsrouteinfInfo> > GetGraphicsrouteinfList(GraphicsrouteinfGetListRequest graphicsrouteinfrequest) { var graphicsrouteinfresponse = new BasicResponse <List <GraphicsrouteinfInfo> >(); graphicsrouteinfrequest.PagerInfo.PageIndex = graphicsrouteinfrequest.PagerInfo.PageIndex - 1; if (graphicsrouteinfrequest.PagerInfo.PageIndex < 0) { graphicsrouteinfrequest.PagerInfo.PageIndex = 0; } int rowcount = 0; var graphicsrouteinfModelLists = _Repository.GetGraphicsrouteinfList(graphicsrouteinfrequest.PagerInfo.PageIndex, graphicsrouteinfrequest.PagerInfo.PageSize, out rowcount); var graphicsrouteinfInfoLists = new List <GraphicsrouteinfInfo>(); foreach (var item in graphicsrouteinfModelLists) { var GraphicsrouteinfInfo = ObjectConverter.Copy <GraphicsrouteinfModel, GraphicsrouteinfInfo>(item); graphicsrouteinfInfoLists.Add(GraphicsrouteinfInfo); } graphicsrouteinfresponse.Data = graphicsrouteinfInfoLists; return(graphicsrouteinfresponse); }
public BasicResponse <List <GraphicsrouteinfInfo> > GetGraphicsrouteinfList(GraphicsrouteinfGetListRequest graphicsrouteinfrequest) { return(graphicsrouteinfService.GetGraphicsrouteinfList(graphicsrouteinfrequest)); }
public BasicResponse <List <GraphicsrouteinfInfo> > GetGraphicsrouteinfList(GraphicsrouteinfGetListRequest graphicsrouteinfrequest) { var responsestr = HttpClientHelper.Post(Webapi + "/v1/graphicsrouteinf/getlist?token=" + Token, JSONHelper.ToJSONString(graphicsrouteinfrequest)); return(JSONHelper.ParseJSONString <BasicResponse <List <GraphicsrouteinfInfo> > >(responsestr)); }