public ActionResult DeleteConfirmed(int id)
        {
            MovieTVActor movieTVActor = db.MovieTVActors.Find(id);

            db.MovieTVActors.Remove(movieTVActor);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "MovieTVActorID,MovieTVID,ActorID,ActorOrder,Character")] MovieTVActor movieTVActor)
 {
     if (ModelState.IsValid)
     {
         db.Entry(movieTVActor).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.ActorID   = new SelectList(db.Actors, "ActorID", "FullName", movieTVActor.ActorID);
     ViewBag.MovieTVID = new SelectList(db.MoviesTVs, "MovieTVID", "Title", movieTVActor.MovieTVID);
     return(View(movieTVActor));
 }
        // GET: MovieTVActors/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            MovieTVActor movieTVActor = db.MovieTVActors.Find(id);

            if (movieTVActor == null)
            {
                return(HttpNotFound());
            }
            return(View(movieTVActor));
        }
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            MovieTVActor movieTVActor = db.MovieTVActors.Find(id);

            if (movieTVActor == null)
            {
                return(HttpNotFound());
            }
            ViewBag.ActorID   = new SelectList(db.Actors, "ActorID", "FullName", movieTVActor.ActorID);
            ViewBag.MovieTVID = new SelectList(db.MoviesTVs, "MovieTVID", "Title", movieTVActor.MovieTVID);
            return(View(movieTVActor));
        }