public JsonResult IndexRest(int id) { CuentaGastosDetalle cgd = new CuentaGastosDetalle() { CuentaGastoId = id }; return(Json(cgd.listCuentaGastosDetalle(), JsonRequestBehavior.AllowGet)); }
// // GET: /CuentaGastosDetalle/ public ActionResult Index(int id) { CuentaGastosDetalle cgd = new CuentaGastosDetalle() { CuentaGastoId = id }; ViewBag.Model = cgd.listCuentaGastosDetalle(); ViewBag.id = id; return(View()); }