Example #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            MovieTables movieTables = db.MovieTables.Find(id);

            db.MovieTables.Remove(movieTables);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Example #2
0
 public ActionResult Edit([Bind(Include = "MovieID,MovieImage,MovieName,MovieGrade,Type,Areas,Years,MvType1,Content,EditorName1,EdImage1,EditorName2,EdImage2,Actor1,AcImage1,Actor2,AcImage2,Actor3,AcImage3,AwardName1,AwTpye1,AwImage1,AwardName2,AwTpye2,AwImage2,Image1,Image2,Image3,Language,ShowTime,Length,Appraise,Profit")] MovieTables movieTables)
 {
     if (ModelState.IsValid)
     {
         db.Entry(movieTables).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(movieTables));
 }
Example #3
0
        // GET: T3/MovieTables/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            MovieTables movieTables = db.MovieTables.Find(id);

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