Sreekanth Reddy

Sreekanth Reddy

  • 329
  • 4.8k
  • 405.4k

Login verification in MVC

Nov 20 2014 9:00 AM
Hai friends,
 
I am beginner to MVC.
 
I have created registration.cshtml & login.cshtml.
 
How to check whether the user is valid user or invalid user?
 
In asp.net I used as:
select count(*) from Users where mailid=" " & password= " "
if it returns 0 i simply said user is invalid else valid user.
 
The same scenerio how to use in MVC with LINQ or Lambda Expression?
 
Please reply me what type of code I need to write?
 

Answers (3)