Exemplo n.º 1
0
        public ActionResult <Pet> Delete(int id)
        {
            var petToDelete = _petService.RemovePet(id);

            if (petToDelete == null)
            {
                return(StatusCode(404, "Pet could not be found"));
            }
            return(Ok("Pet has been deleted"));
        }