public async Task <ActionResult <DoggoType> > PostDoggoType(DoggoType doggoType)
        {
            _context.doggoType.Add(doggoType);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetDoggoType", new { id = doggoType.DoggoTypeId }, doggoType));
        }
        public async Task <IActionResult> PutDoggoType(int id, DoggoType doggoType)
        {
            if (id != doggoType.DoggoTypeId)
            {
                return(BadRequest());
            }

            _context.Entry(doggoType).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!DoggoTypeExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }