/// <summary>
        /// Удаление студента из списка группы электронного журнала
        /// </summary>
        /// <param name="elGradebookGroupStudentId"></param>
        /// <returns></returns>
        public async Task RemoveElGradebookGroupStudentAsync(int elGradebookGroupStudentId)
        {
            var entry = await GetElGradebookGroupStudentAsync(elGradebookGroupStudentId);

            _context.Remove(entry);
            await _context.SaveChangesAsync();
        }
        /// <summary>
        /// Удаляет учебное пособие
        /// </summary>
        /// <param name="uchPosobie"></param>
        /// <returns></returns>
        public async Task RemoveUchPosobieAsync(UchPosobie uchPosobie)
        {
            if (uchPosobie == null)
            {
                return;
            }

            //if(uchPosobie.EduForms!=null)
            //{
            //    _context.RemoveRange(uchPosobie.EduForms);
            //}
            _context.Remove(uchPosobie);
            await _context.SaveChangesAsync();

            if (uchPosobie.FileModel != null)
            {
                await _fileModelRepository.RemoveFileModelAsync(uchPosobie.FileModel);

                await _context.SaveChangesAsync();
            }
        }
 public void RemoveTeacherDisciplineName(TeacherEduProfileDisciplineName teacherDisciplineNameEntry)
 {
     _context.Remove(teacherDisciplineNameEntry);
     _context.SaveChanges();
 }