Beispiel #1
0
        public ActionResult EditContact(Contact c)
        {
            var database = new FakeDatabase();

            database.Edit(c);

            return(RedirectToAction("Index"));
        }
Beispiel #2
0
 public ActionResult EditMovie(MovieProperties newMovie)
 {
     if (ModelState.IsValid)
     {
         var database = new FakeDatabase();
         database.Edit(newMovie);
         return(RedirectToAction("Index"));
     }
     return(View("Edit", newMovie));
 }