I am new to MVC. I was trying to learn on how to use Stored Procedures in MVC 3.
I have a view called Login with 2 textboxes, userId and Password,and a button btnLogin and a corresponding table in SQL Server called tbl_login with the same column names.
On the click of the button, I want to execute a stored procedure that validates the login and redirects to the appropriate page, as we used to do in ASPX web applications. How to do the same in MVC3? Everywhere I go, I found entity frameworks that use code first approach and tables are created using this, but nowhere it is mentioned that if we already have tables and procs, then how to use them?
Please help........thanks in advance.