Issue #5 - moved the transaction success to occur before returning noContent