public async Task <IActionResult> Edit(int id, [Bind("Id,Name")] MannerOfDeathType mannerOfDeathType)
        {
            if (id != mannerOfDeathType.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(mannerOfDeathType);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!MannerOfDeathTypeExists(mannerOfDeathType.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(mannerOfDeathType));
        }
        public async Task <IActionResult> Create([Bind("Id,Name")] MannerOfDeathType mannerOfDeathType)
        {
            if (ModelState.IsValid)
            {
                _context.Add(mannerOfDeathType);
                await _context.SaveChangesAsync();

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