// GET: Admin public ActionResult Admin() { if (Session["AdminLogin"] != null) { try { if (!Request.Params["Password"].Equals("EAlo") && !Request.Params["Admin"].Equals("EAlo")) { adminV = true; } } catch (Exception e) { if (adminV == false) { return(Redirect("~/EAlo/EAlo")); } } getData gd = new getData(); gd.theData(); Models.ListOfApproveTable loa = new Models.ListOfApproveTable(); loa.email = gd.email; loa.UserDetails = gd.UserDetails; loa.FixedDetails = gd.FixedDetails; loa.price = gd.price; loa.PID = gd.PID; loa.Phone = gd.Phone; loa.count = gd.DataCount; return(View(loa)); } else { return(Redirect("~/AdminLogin/AdminLogin")); } }