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