/// <summary> /// 获取ListTemplate web /// </summary> /// <param name="reportRequest"></param> /// <returns></returns> public BasicResponse <ListtempleInfo> GetListTemple(Sys.Safety.Request.ReportGetListTempleRequest reportRequest) { BasicResponse <ListtempleInfo> response = new BasicResponse <ListtempleInfo>(); var item = _ListTemplateRepository.Datas.FirstOrDefault(o => o.ListDataID == reportRequest.ListDataID); if (item != null) { response.Data = ObjectConverter.Copy <ListtempleModel, ListtempleInfo>(item); } return(response); }
public BasicResponse <ListtempleInfo> GetListTemple(Sys.Safety.Request.ReportGetListTempleRequest reportRequest) { var responseStr = HttpClientHelper.Post(Webapi + "/v1/Report/GetListTemple?token=" + Token, JSONHelper.ToJSONString(reportRequest)); return(JSONHelper.ParseJSONString <BasicResponse <ListtempleInfo> >(responseStr)); }
public BasicResponse <ListtempleInfo> GetListTemple(Sys.Safety.Request.ReportGetListTempleRequest reportRequest) { return(reportService.GetListTemple(reportRequest)); }