public CarType CarType(int id) { return(_repository.GetAllCarTypes().Single(q => q.CarTypeId == id)); }
public IActionResult GetCarTypes() { return(View(_repository.GetAllCarTypes())); }
public IActionResult GetCab() { ViewBag.Cars = _car.CarTypes(_repository.GetAllCarTypes()); return(View()); }