Example #1
0
 public ActionResult Delete(string id)
 {
     try
     {
         var filmDao = new FilmDAO();
         filmDao.deleteByID(id);
         return(RedirectToAction("Films"));
     }
     catch
     {
         return(View());
     }
 }