public IActionResult AddCryptoAccount() { CryptoAccountTransaction cryptoAccountTransaction = new CryptoAccountTransaction(); string body = this.InputBodyData; _cryptoManager.AddToCryptoAccount(body); return(Ok()); }
public IActionResult AddCryptoAccount([FromBody] Deposit deposit) { CryptoAccountTransaction cryptoAccountTransaction = new CryptoAccountTransaction(); ResponseDTO <CryptoAccountDTO> response = new ResponseDTO <CryptoAccountDTO>(); if (deposit.Amount <= 0) { response.Data = null; response.Message = "The amount should be greater than 0!"; response.Success = false; return(Ok(response)); } _cryptoManager.AddToCryptoAccount(deposit.Id, deposit.Amount); return(Ok()); }