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

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

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