public async Task <ActionResult <Zoo> > GetAnimal(int id) { try { var animal = await _repo.GetById(id); if (animal != null) { return(animal); } return(NotFound()); } catch (Exception e) { Console.WriteLine(e); return(new BadRequestResult()); } }