public CardDetails GetCardDetailsByNumber(string cardNumber) { return(CardDetails.Where(cd => cd.CardNumber == cardNumber).FirstOrDefault()); }
public CardDetails GetCardDetailsByID(int cardID) { return(CardDetails.Where(cd => cd.CardDetailsID == cardID).FirstOrDefault()); }