             send error: true, msg: 'Server error occurred while retrieving data', 500
         else
             send bo, 200
-
-
-###
-    dev only
-###
-action 'create', ->
-    console.log body
-    BankAccount.create body, (err, ba) ->
-        if err
-            send error: true, msg: "Server error while creating bank account", 500
-        else
-            send ba, 201
        else
            @ba = ba
            next()
, only: ['show', 'delete', 'getOperations']




        else
            send bas, 201

action 'destroy', ->
    @ba.destroy (err) ->
        if err?
            send error: true, msg: "Server error while deleting the bank account", 500
