public IActionResult Index() { return(View(_repository.GetAll())); }
public List <Carro> GetAll() { return(_carrorepository.GetAll("select * from Carro")); }
public IActionResult Index() { var carros = _repository.GetAll(); return(View(carros)); }