Exemplo n.º 1
0
 public CarType CarType(int id)
 {
     return(_repository.GetAllCarTypes().Single(q => q.CarTypeId == id));
 }
Exemplo n.º 2
0
 public IActionResult GetCarTypes()
 {
     return(View(_repository.GetAllCarTypes()));
 }
Exemplo n.º 3
0
 public IActionResult GetCab()
 {
     ViewBag.Cars = _car.CarTypes(_repository.GetAllCarTypes());
     return(View());
 }