public IActionResult Deposit(double amount) { var result = _transactionServises.Deposit(User.Identity.Name, amount); if (!result.Error) { return(Ok(!result.Error)); } return(BadRequest(result.ErrorMessage)); }
public IActionResult Deposit(double amount) { var result = _transactionServises.Deposit(User.Identity.Name, amount); return(Ok(result.ToString())); }