public ActionResult loginAuthenticate(Login user) { //Pass the data to store the record into the table DataTable tbl = new DataTable(); tbl = object_Sql.CheckLogin("select * from LoginTable where UserName='******'and Password='******'"); if (tbl.Rows.Count > 0) { return(View("AdminZone")); } else { return(View("invalid")); } }