public ActionResult CreateTranscript() { if ((string)Session["role"] == "Admin") { ViewBag.SV = StudentAction.GetAll(); ViewBag.Mh = SubjectAction.GetAll(); ViewBag.Mark = RegSectorSubjectAction.ShowAll(); return(View()); } else { return(Redirect("~/Home/Index")); } }