public ActionResult AlertTeam(string Name) { var allPets = _petService.GetAllLostPets(); var myLostPet = allPets.Find(r => r.Name == Name); if (myLostPet == null) { return(NotFound($"Pet with name '{Name}' could not be found!")); } var pet = _petService.FindPetByName(myLostPet); var message = _petService.AlertResponseTeam(pet); return(Ok(message)); }