public async Task <IActionResult> Edit(long id, [Bind("Index,GeoNameId,StubHubCity,StateCode,State,CountryCode,Country,Latitude,Longitude,Score,TimeZoneId,TimeZoneRawOffset,TimeZoneDisplayOffset")] StubHubCity StubHubCity)
        {
            if (id != StubHubCity.Index)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(StubHubCity);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!StubHubCityExists(StubHubCity.Index))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(StubHubCity));
        }
        public async Task <IActionResult> Create([Bind("Index,GeoNameId,StubHubCity,StateCode,State,CountryCode,Country,Latitude,Longitude,Score,TimeZoneId,TimeZoneRawOffset,TimeZoneDisplayOffset")] StubHubCity StubHubCity)
        {
            if (ModelState.IsValid)
            {
                _context.Add(StubHubCity);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(StubHubCity));
        }