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

List of Kim Possible characters

Audio Livestreaming with Python & Flask

NSwag: Generate C# Client from multiple Versions of an API