public ActionResult GetProductByMasterCode(string code) { var allProduct = _capitaContext.sp_getAllBomOnMasterProCodeNoId(code); return(Json(new JsonResult { Data = allProduct }, JsonRequestBehavior.AllowGet)); }