public bool CheckLoginInfo(string cardNumber, string pin) { CardRepository cardRepository = new CardRepository(); return(cardRepository.CheckCard(cardNumber, new CardGenerator().HashPin(pin))); }
public bool CheckCard(string cardPan, out Card card) { CardRepository cardDAO = new CardRepository(); return(cardDAO.CheckCard(cardPan, out card)); }