public IActionResult CheckCard(DebitCard card)
        {
            var result = _debitCardService.CheckCard(card);

            if (result.Success)
            {
                return(Ok(result));
            }

            return(BadRequest(result));
        }
Beispiel #2
0
        public IActionResult CheckCard(string cardNumber)
        {
            var result = _debitCardService.CheckCard(cardNumber);

            if (result.Success)
            {
                return(Ok(result));
            }

            return(BadRequest(result));
        }