嗨,我有WebApi,其中以以下格式返回字典
需要帮助,如何将客户端中的响应转换为从字典中读取列表并划分列表的
类型:
代码段: dictAQMQStats = dbhelper.GetMessageStats();
<div class="card align-items-center" style="width: 18rem;">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
客户代码:
WebRequest请求= WebRequest.Create(serviceUrl); WebResponse响应= request.GetResponse();
//return Request.CreateResponse(
return ControllerContext.Request.CreateResponse(HttpStatusCode.OK, new { dictAQMQStats });
需要帮助,如何将客户端中的响应转换为从字典中读取列表并划分列表的