コード例 #1
0
        public IDataResult <CreditCard> IsCardExist(CreditCard creditCard)
        {
            var card = _creditCardService.GetByCvc(creditCard.CVC);

            if (!card.Success)
            {
                return(new ErrorDataResult <CreditCard>(PaymentMessages.CardNotExist));
            }
            return(card);
        }