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

            return(Ok(data));
        }