public StudentController(UserManager <User> userManager, StudentTasks studentTasks,
                          IRepository <StudentLesson> student_Lesson, IRepository <Lesson> lesson, IRepository <Models.Task> task,
                          IRepository <Assignment> assignment, IRepository <Solution> solution, IRepository <Schedule> schedule,
                          IRepository <Discipline> discipline, IRepository <Time> time, IRepository <Day> day, List <Subjects> _subjects, IRepository <Models.Group> group, StudentTasks _studentTasks)
 {
     _userManager    = userManager;
     _Student_Lesson = student_Lesson;
     _Lesson         = lesson;
     _Task           = task;
     _Assignment     = assignment;
     _Solution       = solution;
     _Schedule       = schedule;
     _Discipline     = discipline;
     _Time           = time;
     _Day            = day;
     _Group          = group;
     subjects        = _subjects;
     studentTasks    = _studentTasks;
 }
        public IActionResult Index()
        {
            //var k=Logic.check("Hello", "Hello");   //Приклад використання
            studentTasksUpdate(HttpContext.User.FindFirstValue(ClaimTypes.NameIdentifier));
            StudentTasks studentTasksPreview = new StudentTasks();

            for (int i = 0; i < 3; i++)
            {
                if (studentTasks.Hometasks.OrderBy(t => t.TaskAssignment.Deadline).Count() > i)
                {
                    studentTasksPreview.Hometasks.Add(studentTasks.Hometasks.OrderBy(t => t.TaskAssignment.Deadline).ElementAt(i));
                }
                if (studentTasks.Tests.OrderBy(t => t.TaskAssignment.Deadline).Count() > i)
                {
                    studentTasksPreview.Tests.Add(studentTasks.Tests.OrderBy(t => t.TaskAssignment.Deadline).ElementAt(i));
                }
            }

            return(View(studentTasksPreview));
        }