public ActionResult ADashboard() { string e = (string)Session["AEmail"]; string [] tempString = MiscellaneousLogic.GetJobsApplied(e); return(View(tempString)); }
public ActionResult ALogin( [Bind(Include = "EmailAddress, Password")] AuthenticationModel Auth ) { string email = Auth.EmailAddress; string pass = Auth.Password; if (MiscellaneousLogic.Authenticate(email, pass)) { Session["AEmail"] = email; return(RedirectToAction("ADashboard")); } else { return(View()); } }