public IActionResult GetByUserId(int id)
        {
            var result = _userCreditCardService.GetByUserId(id);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
Example #2
0
        public IActionResult GetById(int userId)
        {
            var result = _userCreditCardService.GetByUserId(userId);

            return(Ok(result.Data));
        }