예제 #1
0
        public IActionResult ListBalance()
        {
            var id = int.Parse(User.Claims.First(i => i.Type == "UserId").Value);

            try
            {
                var balances = _accountBusiness.GetBalances(id);
                return(Ok(balances));
            }
            catch
            {
                throw new CustomException(500, "Error interno del servidor");
            }
        }