Exemple #1
0
 public ActionResult EditarPelicula(int id)
 {
     if (Session["user"] == null)
     {
         Session["redirect"] = "EditarPelicula";
         return(RedirectToAction("Login", "Home"));
     }
     ViewBag.Calificaciones = pservice.ObtenerCalificaciones();
     ViewBag.Generos        = pservice.ObtenerGeneros();
     ViewBag.Pelicula       = pservice.ObtenerPeliculaPorId(id);
     return(View());
 }
Exemple #2
0
 public ActionResult Reserva(int id)
 {
     Session["idPeli"] = id;
     ViewBag.Versiones = rservice.ObtenerVersiones(id);
     ViewBag.Pelicula  = pservice.ObtenerPeliculaPorId(id);
     return(View());
 }