コード例 #1
0
 public HttpResponseMessage GetSupplyrMore([FromUri] HomeRequest request)
 {
     try
     {
         var data = _Home.GetSupplyrMore(request);
         return(AjaxResult.Success(data).ToJsonApi());
     }
     catch (Exception)
     {
         return(AjaxResult.Error("操作失败").ToJsonApi());
     }
 }
コード例 #2
0
        /// <summary>
        /// 供应量需求量统计
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public ActionResult GetSupplyrMore(HomeRequest request)
        {
            var data = _Home.GetSupplyrMore(request);

            return(Content(data.ToJson()));
        }