public ActionResult Index() { if (Request.Cookies["UserId"] == null) { return(RedirectToAction("Index", "Landing")); } return(View(examManager.GetAllExam())); }