public ActionResult GetCoursesForLecturer(long lecturerId, long departmentId) { var courses = new CourseFactory().GetAllCoursesForADepartment(departmentId); var lecturerCourses = courses.Where(n => n.AppUserId == lecturerId); return(View("Index", lecturerCourses)); }