Beispiel #1
0
 public HttpResponseMessage GetOrderData([FromUri] HomeRequest request)
 {
     try
     {
         var data = _Home.GetOrderData(request);
         return(AjaxResult.Success(data).ToJsonApi());
     }
     catch (Exception)
     {
         return(AjaxResult.Error("操作失败").ToJsonApi());
     }
 }
Beispiel #2
0
        /// <summary>
        /// 订单信息
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public ActionResult GetOrderData(HomeRequest request)
        {
            var data = _Home.GetOrderData(request);

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