public async Task <ActionResult <ParkModel[]> > GetAllParks()
        {
            var results = await _service.GetAllModelsAsync();

            return(Ok(results));
        }
Exemple #2
0
        public async Task <IActionResult> Index()
        {
            var results = await _service.GetAllModelsAsync();

            return(View(results));
        }