public ActionResult FilterCourses(string courseName, string teacherName, int?lessonsCount) { Course[] aggregatedCourses = _coursesService.GetAggregatedCourses(); _coursesService.FilterCourses(ref aggregatedCourses, courseName, teacherName, lessonsCount); var model = new BoardModel { AggregatedCourses = aggregatedCourses }; return(PartialView("_PartialAggregatedCourses", model)); }