public IActionResult GetAllByCustomerID(int id) { var result = _creditCardService.GetAllByCustomerID(id); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }