public ActionResult DeleteConfirmed(string id)
        {
            Peliculas peliculas = db.Peliculas.Find(id);

            db.Peliculas.Remove(peliculas);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Titulo,Genero,Clasificacion,Actores,Director,Duracion,Distribuidora,NumeroSala")] Peliculas peliculas)
 {
     if (ModelState.IsValid)
     {
         db.Entry(peliculas).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(peliculas));
 }
        public ActionResult Create([Bind(Include = "Titulo,Genero,Clasificacion,Actores,Director,Duracion,Distribuidora,NumeroSala")] Peliculas peliculas)
        {
            if (ModelState.IsValid)
            {
                db.Peliculas.Add(peliculas);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(peliculas));
        }
        // GET: Peliculas/Delete/5
        public ActionResult Delete(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Peliculas peliculas = db.Peliculas.Find(id);

            if (peliculas == null)
            {
                return(HttpNotFound());
            }
            return(View(peliculas));
        }