Пример #1
0
        public IActionResult GetAmounts(int userId)
        {
            var amounts = JsonConvert.SerializeObject(new
            {
                amountToPay     = _creditService.GetAmountToPay(userId),
                amountToReceive = _transactionService.GetAmountToReceive(userId),
            });

            return(Ok(amounts));
        }