public IActionResult GetById(int cardId) { var result = _creditCardService.FindByID(cardId); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }