Example #1
0
        public async Task <IActionResult> Upsert(int?id)
        {
            NationalPark nationalPark = new NationalPark();

            if (id == null)
            {
                return(NotFound());
            }

            nationalPark = await _npRepo.GetByIdAsync(id.GetValueOrDefault(), SD.NationalParkAPIPath);

            return(View(nationalPark));
        }