public int validateUser(string userName, string pwd) { // var userExists = db.checkUserPassword(userName, pwd); // var userExists = db.ProjectMembers.FirstOrDefault(x => x.MUsername == userName && x.MPassword == pwd) != null; var result = db.checkUserPassword(userName, pwd); int i = result; // Console.WriteLine(userExists.ToString() + ", " + i); return(i); }