public IActionResult GetAllByCustomerId(int customerId)
        {
            var result = _creditCardService.GetAllByCustomerId(customerId);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
示例#2
0
        public async Task <IActionResult> GetAllByCustomerId(string customerId)
        {
            var result = await _creditCardService.GetAllByCustomerId(customerId);

            if (result.Success)
            {
                return(Ok(result));
            }

            return(BadRequest(result));
        }