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

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

            return(BadRequest(result.ErrorMessage));
        }
Example #2
0
        public IActionResult Withdraw(double amount)
        {
            var result = _transactionServises.Withdraw(User.Identity.Name, amount);

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