public HttpResponseMessage GetRawMaterialStockData([FromUri] HomeRequest request) { try { var data = _Home.GetRawMaterialStockData(request); return(AjaxResult.Success(data).ToJsonApi()); } catch (Exception) { return(AjaxResult.Error("操作失败").ToJsonApi()); } }
/// <summary> /// 获取库存信息 /// </summary> /// <param name="request"></param> /// <returns></returns> public ActionResult GetRawMaterialStockData(HomeRequest request) { var data = _Home.GetRawMaterialStockData(request); return(Content(data.ToJson())); }