public IActionResult Index() { return(View(carData.GetCars())); }
public List <Car> GetCars() { return(data.GetCars()); }
public IActionResult Index() { log.LogCritical("Всё хорошо :-)"); return(View(carData.GetCars())); }
public void OnGet() { Cars = carData.GetCars(); }
public IActionResult GetCars() { return(Ok(_carData.GetCars())); }
public IActionResult GetCarsAll() { var data = carData.GetCars(); return(Ok(data)); }