コード例 #1
0
 public IActionResult UpdateTruck(int id, string newName, string newDescription)
 {
     ViewBag.response = TruckDAL.update(new TruckModel()
     {
         id          = id,
         description = newDescription,
         type        = newName
     });
     return(RedirectToAction("Index"));
 }
コード例 #2
0
 public TruckBO()
 {
     truckDAL = new TruckDAL();
 }
コード例 #3
0
 public IActionResult Index()
 {
     ViewBag.truckList = TruckDAL.getAll();
     return(View());
 }