public ActionResult GetChargeCards() { try { var items = _chargeSrv.GetValidChargeCards(); return(Json(new { success = true, data = items }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new { success = false, msg = ex.Message }, JsonRequestBehavior.AllowGet)); } }