public BasicResponse <List <JC_EmergencyLinkageConfigInfo> > GetJC_EmergencylinkageconfigList(EmergencyLinkageConfigGetListRequest jC_Emergencylinkageconfigrequest) { var responseStr = HttpClientHelper.Post(Webapi + "/v1/EmergencyLinkageConfig/GetJC_EmergencylinkageconfigList?token=" + Token, JSONHelper.ToJSONString(jC_Emergencylinkageconfigrequest)); return(JSONHelper.ParseJSONString <BasicResponse <List <JC_EmergencyLinkageConfigInfo> > >(responseStr)); }
public BasicResponse <List <JC_EmergencyLinkageConfigInfo> > GetJC_EmergencylinkageconfigList(EmergencyLinkageConfigGetListRequest jC_Emergencylinkageconfigrequest) { var jC_Emergencylinkageconfigresponse = new BasicResponse <List <JC_EmergencyLinkageConfigInfo> >(); jC_Emergencylinkageconfigrequest.PagerInfo.PageIndex = jC_Emergencylinkageconfigrequest.PagerInfo.PageIndex - 1; if (jC_Emergencylinkageconfigrequest.PagerInfo.PageIndex < 0) { jC_Emergencylinkageconfigrequest.PagerInfo.PageIndex = 0; } int rowcount = 0; var jC_EmergencylinkageconfigModelLists = _Repository.GetJC_EmergencylinkageconfigList(jC_Emergencylinkageconfigrequest.PagerInfo.PageIndex, jC_Emergencylinkageconfigrequest.PagerInfo.PageSize, out rowcount); var jC_EmergencylinkageconfigInfoLists = new List <JC_EmergencyLinkageConfigInfo>(); foreach (var item in jC_EmergencylinkageconfigModelLists) { var JC_EmergencyLinkageConfigInfo = ObjectConverter.Copy <JC_EmergencylinkageconfigModel, JC_EmergencyLinkageConfigInfo>(item); jC_EmergencylinkageconfigInfoLists.Add(JC_EmergencyLinkageConfigInfo); } jC_Emergencylinkageconfigresponse.Data = jC_EmergencylinkageconfigInfoLists; return(jC_Emergencylinkageconfigresponse); }
public BasicResponse <List <JC_EmergencyLinkageConfigInfo> > GetJC_EmergencylinkageconfigList(EmergencyLinkageConfigGetListRequest jC_Emergencylinkageconfigrequest) { return(_EmergencyLinkageConfigService.GetJC_EmergencylinkageconfigList(jC_Emergencylinkageconfigrequest)); }