You should be able to use the `$promise` object from the `$resource` if you wanted to simplify this:  http://docs.angularjs.org/api/ngResource.$resource#usage_returns

You could then use `environment.$promise.then()` to register your success/error handlers.