public ActionResult Edit(CarStatus_Object obj) { var b = new CarStatus_BCL().UPDATE(obj); if (b) { return(RedirectToAction("Index", "CarStatus")); } else { ModelState.AddModelError("", "Edit that bai"); } return(View()); }
public ActionResult Create(CarStatus_Object obj) { var b = new CarStatus_BCL().INSERT(obj); if (b) { return(RedirectToAction("Index", "CarStatus")); } else { ModelState.AddModelError("", "them moi that bai"); } return(View()); }
// GET: Admin/CarStatus/Edit/5 public ActionResult Edit(Guid id) { var obj = new CarStatus_BCL().GetByID(id); return(View(obj)); }
// GET: Admin/CarStatus public ActionResult Index() { var data = new CarStatus_BCL().GetAll(); return(View(data)); }