public ActionResult DeleteExam(Guid examID) { if (Request.Cookies["UserId"] == null) { return(RedirectToAction("Index", "Landing")); } examManager.DeleteExamByID(examID); return(RedirectToAction("Index")); }