Hi there im using Linq for check if two user fields correspond for an unique user register in SQL Table, for example
UID : userID PIN : passID
so fields have to be from a single user, i was trying this:
public bool AutentificacionUsuario(string userID , string password passID) { USER _userID = _db.USER.FirstOrDefault(uid => uid.siglas == userID); USER _passID = _db.USER.FirstOrDefault(pwd => pwd.codigousuario == passID);
but boths returns a USER Table instance from Datacontext (two instead one), i want to match them in lambda expression like if ‘ this userID match passID’
Thanks!
or