public bool IsPinValid(string pin, int creditCardId) { var encryptedPin = Cipher.Encrypt(pin, CipherConstans.CreditCardPin); var isMatched = _creditCardRepository.IsPinMatched(encryptedPin, creditCardId); return(isMatched); }