/// <summary>
        /// Обновление файла листа переутверждения рабочей программы
        /// </summary>
        /// <param name="rabProgram"></param>
        /// <param name="uploadedFile"></param>
        /// <returns></returns>
        public async Task <RabProgram> UpdateRabProgramListPereutverjdeniyaAsync(RabProgram rabProgram, IFormFile uploadedFile)
        {
            if (rabProgram == null || uploadedFile == null)
            {
                return(null);
            }
            FileModel fileModel = await _fileModelRepository.UploadRabProgramListPereutverjdeniyaAsync(uploadedFile);

            if (rabProgram.FileModelListPereutverjdeniyaId != null)
            {
                await _fileModelRepository.RemoveFileAsync(rabProgram.FileModelListPereutverjdeniyaId);
            }

            rabProgram.FileModelListPereutverjdeniya   = fileModel;
            rabProgram.FileModelListPereutverjdeniyaId = fileModel.Id;

            if (rabProgram.RabProgramId == 0)
            {
                await _context.RabPrograms.AddAsync(rabProgram);
            }

            await _context.SaveChangesAsync();

            return(rabProgram);
        }
        /// <summary>
        /// Удаляет лист переутверждения рабочей программы
        /// </summary>
        /// <param name="rabProgram"></param>
        /// <returns></returns>
        public async Task RemoveRabProgramListPereutverjdeniyaAsync(RabProgram rabProgram)
        {
            await _fileModelRepository.RemoveFileAsync(rabProgram.FileModelListPereutverjdeniyaId);

            rabProgram.FileModelListPereutverjdeniyaId = null;
            await _context.SaveChangesAsync();
        }