Exemple #1
0
 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"));
     }
 }
Exemple #2
0
        public ActionResult TraerListaReservas()
        {
            ClienteReservacion reservacion = new ClienteReservacion();

            return(Json(new { data = reservacion.obtenerListaDeReservaciones() }, JsonRequestBehavior.AllowGet));
        }