Пример #1
0
        //Delete
        public ActionResult Delete(int id)
        {
            var hall = HallDAO.GetHall(id);

            if (hall == null)
            {
                return(HttpNotFound());
            }
            HallDAO.Delete(hall);
            return(RedirectToAction("HallList"));
        }
Пример #2
0
        // Edit
        public ActionResult Edit(int id)
        {
            var hall = HallDAO.GetHall(id);

            if (hall == null)
            {
                return(HttpNotFound());
            }

            return(View("HallAdd", hall));
        }