public ActionResult GetLineByProduction(string Production) { try{ if (Production.AsNullIfEmpty() != null) { return(Json(new { status = "success", data = M_Cal.GetLineByProduction(Production) }, JsonRequestBehavior.AllowGet)); } else { throw new Exception(); } }catch (Exception err) { return(Json(new { status = "error" }, JsonRequestBehavior.AllowGet)); } }