public BasicResponse <List <ConfigInfo> > GetConfigList(ConfigGetListRequest configrequest) { var configresponse = new BasicResponse <List <ConfigInfo> >(); configrequest.PagerInfo.PageIndex = configrequest.PagerInfo.PageIndex - 1; if (configrequest.PagerInfo.PageIndex < 0) { configrequest.PagerInfo.PageIndex = 0; } int rowcount = 0; var configModelLists = _Repository.GetConfigList(configrequest.PagerInfo.PageIndex, configrequest.PagerInfo.PageSize, out rowcount); var configInfoLists = new List <ConfigInfo>(); foreach (var item in configModelLists) { var ConfigInfo = ObjectConverter.Copy <ConfigModel, ConfigInfo>(item); configInfoLists.Add(ConfigInfo); } configresponse.Data = configInfoLists; return(configresponse); }
public BasicResponse <List <ConfigInfo> > GetConfigList(ConfigGetListRequest configrequest) { var responseStr = HttpClientHelper.Post(Webapi + "/v1/Config/GetPageList?token=" + Token, JSONHelper.ToJSONString(configrequest)); return(JSONHelper.ParseJSONString <BasicResponse <List <ConfigInfo> > >(responseStr)); }
public BasicResponse <List <ConfigInfo> > GetConfigList(ConfigGetListRequest configrequest) { return(_configService.GetConfigList(configrequest)); }