public IActionResult GetByCreditCardNumber(string cardNumber) { var result = _creditCardService.GetByCreditCardNumber(cardNumber); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }