public ActionResult DeleteConfirmed(int id)
        {
            movy movy = db.movies.Find(id);

            db.movies.Remove(movy);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "movie_id,movie_name,genre,runtime,release_date,language,subtitle,description,image_path,video_path,rating,director")] movy movy)
 {
     if (ModelState.IsValid)
     {
         db.Entry(movy).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(movy));
 }
        // GET: movies/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            movy movy = db.movies.Find(id);

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