コード例 #1
0
        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));
        }