public OperationResult Get() { // get the account for the logged in user var username = Context.User.Identity.Name; var account = _accounts.GetForUser(username); var accountResource = new AccountResource(account); if (account == null) { return(new OperationResult.NotFound()); } // return their bank account balance return(new OperationResult.OK(accountResource)); }