Changed CRUD success to checking return code from api