public ActionResult LoginQuery(AdminLogin data)
        {
            String    query = "select * from Login where Name='" + data.txtName + "' And Password='******'";
            DataTable tbl   = new DataTable();

            tbl = data.SearchRecord(query);

            if (tbl.Rows.Count > 0)
            {
                return(View("Dashboard"));
            }
            else
            {
                return(View("InvalidDetails"));
            }
        }