public static CardInfo GetCardByNumAndPassword(string cardNum, string password) { if (!string.IsNullOrEmpty(cardNum) && !string.IsNullOrEmpty(password)) { return(dal.GetCardByNumAndPassword(cardNum, password)); } return(new CardInfo(true)); }