public async Task<IActionResult> Lectures(int ClassSubjectId) { var Lectures = await _LectureRepository.GetLectureBySubject(ClassSubjectId); if (TempData["Error"] != null) { ViewBag.Error = TempData["Error"].ToString(); } if (TempData["Success"] != null) { ViewBag.Success = TempData["Success"].ToString(); } return View(Lectures); }