public async Task <IActionResult> Edit(string id, [Bind("ShipNation,NationAbbrev")] ShipNations shipNations)
        {
            if (id != shipNations.NationAbbrev)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(shipNations);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!ShipNationsExists(shipNations.NationAbbrev))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(shipNations));
        }
        public async Task <IActionResult> Create([Bind("ShipNation,NationAbbrev")] ShipNations shipNations)
        {
            if (ModelState.IsValid)
            {
                _context.Add(shipNations);
                await _context.SaveChangesAsync();

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