This is really just a JS issue. Look at the type of data
. It is an array, not an object. The call you're making is returning back an array so if you expect only 1 value back then you'll need to get the first item in the array.
//Ignoring error checking here...
var item = data[0];
$scope.TotalBalance = item.Balance;
...