public ActionResult GetAllSection() { if (Session["UserRoleId"] == null) { return(RedirectToAction("Login", "Login")); } var sections = _sectionManager.GetAllSection(); return(Json(sections, JsonRequestBehavior.AllowGet)); }