public async Task <IActionResult> Details(int?id) { try { if (id == null || id <= 0) { throw new CustomException(400, "Id de la transacción no válido"); } var user_id = int.Parse(User.Claims.First(i => i.Type == "UserId").Value); var transaction = await _transactionBusiness.Details(id, user_id); return(StatusCode(200, transaction)); } catch { throw; } }