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