public ActionResult VerReserva(String numeroReservacion) { if (Session["UserID"] != null) { ClienteReservacion reserva = new ClienteReservacion(); var infoReserva = reserva.obtenerReservacionPorNumero(numeroReservacion); ViewBag.infoReserva = infoReserva; return(View("InfoReserva")); } else { return(RedirectToAction("LogIn")); } }
public ActionResult TraerListaReservas() { ClienteReservacion reservacion = new ClienteReservacion(); return(Json(new { data = reservacion.obtenerListaDeReservaciones() }, JsonRequestBehavior.AllowGet)); }