public IActionResult UpdateTruck(int id, string newName, string newDescription) { ViewBag.response = TruckDAL.update(new TruckModel() { id = id, description = newDescription, type = newName }); return(RedirectToAction("Index")); }
public TruckBO() { truckDAL = new TruckDAL(); }
public IActionResult Index() { ViewBag.truckList = TruckDAL.getAll(); return(View()); }