public ActionResult <PetType> Get(int id) { var type = _typeService.FindTypeByIdIncludePets(id); if (id <= 0) { return(BadRequest("ID must be greater than 0")); } if (type == null) { return(StatusCode(404, $"Pet type with id {id} not found")); } return(StatusCode(200, type)); }