예제 #1
0
        public ActionResult <PetType> Put(int id, [FromBody] PetType petType)
        {
            var petType1 = _petTypeService.PutPetType(petType);

            if (petType1 == null)
            {
                return(StatusCode(404, "PetType not found"));
            }
            else
            {
                return(StatusCode(202, petType1));
            }
        }