Hi,
In asp.net mvc, I want to create a action for login.
So this is how I am doing it:
create a action/view named login that simply displays the view.
create another action, named login2 that will be the page that handles the form post and checks the database if the username/password are correct. If it is, redirect to somepage, if not, redirect back to the login page with the appropriate error message.
Is this the best way to do this?