Beispiel #1
0
        public async Task <IViewComponentResult> InvokeAsync(int courseId, int topicId)
        {
            var tasks = _taskData.GetTasksOfCourse(new TaskFilter()
            {
                CourseId = courseId,
                TopicId  = topicId
            }).OrderBy(t => t.Order).ToList();

            return(View(tasks));
        }