public ActionResult <Pet> Get(int id) { try { return(StatusCode(200, _petservice.FindPetByIdWithOwner(id))); } catch (Exception e) { return(StatusCode(500, e.Message)); } }