Login query for asp.net


Login query for asp.net



How can I use this query in mvc 5 for login conformation



var userInfo = db.Users.Where((s => s.Email == model.Email.Trim()) && (s=>s.Password == model.Password.Trim())).FirstOrDefault();









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

PySpark - SparkContext: Error initializing SparkContext File does not exist

django NoReverseMatch Exception

Python Tkinter Error, “Too Early to Create Image”