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