Пример #1
0
        public ActionResult Delete(Orders obj)
        {
            OrdersDAO odao = new OrdersDAO();

            odao.delete(obj);
            return(RedirectToAction("Index"));
        }
Пример #2
0
        public ActionResult Delete(int id)
        {
            OrdersDAO odao = new OrdersDAO();
            Orders    ord  = odao.Select(id);

            odao.delete(ord);
            return(RedirectToAction("Index"));
        }