Пример #1
0
        public ActionResult Delete(int id)
        {
            OrdersDAO odao = new OrdersDAO();
            Orders    ord  = odao.Select(id);

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

            return(View(odao.Select(id)));
        }
Пример #3
0
        public ActionResult Index()
        {
            OrdersDAO odao = new OrdersDAO();

            return(View(odao.Select()));
        }