Esempio n. 1
0
        public ActionResult Edit(DesignCar_Object obj)
        {
            var b = new DesignCar_BCL().UPDATE(obj);

            if (b)
            {
                return(RedirectToAction("Index", "DesignCar"));
            }
            else
            {
                ModelState.AddModelError("", "Edit that bai");
            }
            return(View());
        }
Esempio n. 2
0
        public ActionResult Create(DesignCar_Object obj)
        {
            var b = new DesignCar_BCL().INSERT(obj);

            if (b)
            {
                return(RedirectToAction("Index", "DesignCar"));
            }
            else
            {
                ModelState.AddModelError("", "them moi that bai");
            }
            return(View());
        }
Esempio n. 3
0
        // GET: Admin/DesignCar/Edit/5
        public ActionResult Edit(Guid id)
        {
            var obj = new DesignCar_BCL().GetByID(id);

            return(View(obj));
        }
Esempio n. 4
0
        // GET: Admin/DesignCar
        public ActionResult Index()
        {
            var data = new DesignCar_BCL().GetAll();

            return(View(data));
        }