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