// GET: Admin/TypeOfCar/Edit/5 public ActionResult Edit(Guid id) { GetComboboxCompany(); var obj = new TypeOfCar_BCL().GetByID(id); return(View(obj)); }
public ActionResult Edit(TypeOfCar_Object obj) { var b = new TypeOfCar_BCL().UPDATE(obj); if (b) { return(RedirectToAction("Index", "TypeOfCar")); } else { ModelState.AddModelError("", "Edit that bai"); } return(View()); }
public ActionResult Create(TypeOfCar_Object obj) { obj.IsDeleted = false; obj.Status = false; var b = new TypeOfCar_BCL().INSERT(obj); if (b) { return(RedirectToAction("Index", "TypeOfCar")); } else { ModelState.AddModelError("", "them moi that bai"); } return(View()); }
// GET: Admin/TypeOfCar public ActionResult Index() { var data = new TypeOfCar_BCL().GetAll2(); return(View(data)); }