public ActionResult GetPetTypeById(int id) { try { return(Ok(_petTypeService.getTypeById(id))); } catch (Exception e) { return(StatusCode(500, e.Message)); } }