// GET: /<controller>/ public IActionResult Index() { var repo = new TRUCKRepository(); var TRUCKS = repo.GetAllTRUCKS(); return(View(TRUCKS)); }
public IActionResult ViewTRUCK(int id) { var repo = new TRUCKRepository(); var newTruck = repo.GetTruck(id); //var newRepo = new ReviewRepository(); //var allReviews = newRepo.GetAllReviews(); return(View(newTruck)); }