コード例 #1
0
        /// <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);
        }
コード例 #2
0
        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));
        }
コード例 #3
0
 public BasicResponse <ListtempleInfo> GetListTemple(Sys.Safety.Request.ReportGetListTempleRequest reportRequest)
 {
     return(reportService.GetListTemple(reportRequest));
 }