public ActionResult GetEQPInfo(string LayoutName) { using (EquipmentLayoutDetailServiceClient client = new EquipmentLayoutDetailServiceClient()) { MethodReturnResult <DataTable> result = client.GetEQPInfo(LayoutName); return(Json(JsonConvert.SerializeObject(result.Data), JsonRequestBehavior.AllowGet)); } }