/// <summary>
        /// Добавление студента в журнал
        /// </summary>
        /// <param name="elGradebookId"></param>
        /// <returns></returns>
        public IActionResult ElGradebookGroupStudentsAdd(int elGradebookId)
        {
            ElGradebookGroupStudent newStudent = new ElGradebookGroupStudent {
                ElGradebookId = elGradebookId
            };

            return(View(newStudent));
        }
        /// <summary>
        /// Редактирование студента в списке группы электронного журнала
        /// </summary>
        /// <param name="elGradebookGroupStudentId"></param>
        /// <returns></returns>
        public async Task <IActionResult> ElGradebookGroupStudentsEditStudent(int elGradebookGroupStudentId)
        {
            ElGradebookGroupStudent entry = await _elGradebookRepository.GetElGradebookGroupStudentAsync(elGradebookGroupStudentId);

            if (entry == null)
            {
                return(NotFound());
            }

            return(View(entry));
        }
        public async Task <IActionResult> ElGradebookGroupStudentsRemoveStudent(ElGradebookGroupStudent elGradebookGroupStudent)
        {
            await _elGradebookRepository.RemoveElGradebookGroupStudentAsync(elGradebookGroupStudent.ElGradebookGroupStudentId);

            return(RedirectToAction(nameof(ElGradebookGroupStudents), new { elGradebookGroupStudent.ElGradebookId }));
        }
        public async Task <IActionResult> ElGradebookGroupStudentsEditStudent(ElGradebookGroupStudent elGradebookGroupStudent)
        {
            await _elGradebookRepository.UpdateElGradebookGroupStudent(elGradebookGroupStudent);

            return(RedirectToAction(nameof(ElGradebookGroupStudents), new { elGradebookGroupStudent.ElGradebookId }));
        }
        public async Task <IActionResult> ElGradebookGroupStudentsBindAccountConfirmed(ElGradebookGroupStudent elGradebookGroupStudent)
        {
            await _elGradebookRepository.ElGradebookGroupStudentSetAppUserId(elGradebookGroupStudent.ElGradebookGroupStudentId, elGradebookGroupStudent.AppUserId);

            return(RedirectToAction(nameof(ElGradebookGroupStudents), new { elGradebookGroupStudent.ElGradebookId }));
        }