I would have thought that some small repairs like changing the oil or servicing would be fine, but sanding and spraying? Too many potential problems like noise, mess, smell, fumes, overspray etc.
Probably OK if the garage is seperate and away from other cars etc though.