public async Task <IActionResult> BuyCurrencyAsync([FromBody] TransactionBuyCurrency tbc) { try { var user_id = int.Parse(User.Claims.First(i => i.Type == "UserId").Value); await _transactionBusiness.BuyCurrency(tbc, user_id); return(StatusCode(201)); } catch { throw; } }