Esempio n. 1
0
        public JsonResult GetBalance(long accountNumber)
        {
            var result = ur.GetBalance(accountNumber);

            var balance = new BalanceViewModel
            {
                AccountNumber = result.AccountNumber,
                Balance       = result.Balance,
                Currency      = result.Currency,
                Successful    = result.Successful,
                Message       = result.Message
            };

            return(Json(balance, JsonRequestBehavior.AllowGet));
        }