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()); }
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()); }
// GET: Admin/DesignCar/Edit/5 public ActionResult Edit(Guid id) { var obj = new DesignCar_BCL().GetByID(id); return(View(obj)); }
// GET: Admin/DesignCar public ActionResult Index() { var data = new DesignCar_BCL().GetAll(); return(View(data)); }