public async Task <ActionResult <ParkModel> > GetParkById(int parkId)
        {
            var results = await _service.GetParkAsync(parkId);

            return(Ok(results));
        }
Exemple #2
0
        public async Task <IActionResult> Details(int parkId)
        {
            var park = await _service.GetParkAsync(parkId);

            return(View(park));
        }