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

            return(View(carros));
        }