public IActionResult Deposit(double amount)
        {
            var result = _transactionServises.Deposit(User.Identity.Name, amount);

            if (!result.Error)
            {
                return(Ok(!result.Error));
            }

            return(BadRequest(result.ErrorMessage));
        }
Exemplo n.º 2
0
        public IActionResult Deposit(double amount)
        {
            var result = _transactionServises.Deposit(User.Identity.Name, amount);

            return(Ok(result.ToString()));
        }