public ActionResult GetSubjectDetailDataList(string id) { if (CommonFunc.IsNotLogin(Session["UserLogin"] + "")) { return(RedirectToAction("Login", "Accounts")); } Subjects sub = subject.GetSubjectById(id); ViewBag.Subject = sub; List <Lessons> data = lessons.GetAll("", "", id); return(View(data)); }