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