What am I doing wrong. I get an error that says sequence has no arguements.
PumpSUM.tblcards card = ps.tblcards.First(p => (p.PinId == 1223 && p.CardId == 321));
What am I doing wrong. I get an error that says sequence has no arguements.
PumpSUM.tblcards card = ps.tblcards.First(p => (p.PinId == 1223 && p.CardId == 321));
It seems that this problem occurs when there is no first element to choose.You'd better use FirstOrDefault function.