/// <summary>
        /// Добавляет к фонду оценочных средств загруженный файл
        /// </summary>
        /// <param name="fondOcenochnihSredstv"></param>
        /// <param name="uploadedFile"></param>
        /// <returns></returns>
        public async Task <FondOcenochnihSredstv> UpdateFondOcenochnihSredstvAsync(FondOcenochnihSredstv fondOcenochnihSredstv, IFormFile uploadedFile)
        {
            if (fondOcenochnihSredstv == null || uploadedFile == null)
            {
                return(null);
            }
            FileModel fileModel = await _fileModelRepository.UploadFondOcenochnihSredstvAsync(uploadedFile);

            if (fondOcenochnihSredstv.FileModelId != 0)
            {
                await _fileModelRepository.RemoveFileAsync(fondOcenochnihSredstv.FileModelId);
            }

            fondOcenochnihSredstv.FileModel   = fileModel;
            fondOcenochnihSredstv.FileModelId = fileModel.Id;

            if (fondOcenochnihSredstv.FondOcenochnihSredstvId == 0)
            {
                await _context.FondOcenochnihSredstvs.AddAsync(fondOcenochnihSredstv);
            }

            await _context.SaveChangesAsync();

            return(fondOcenochnihSredstv);
        }
        /// <summary>
        /// Удаляет фонд оценочных средств
        /// </summary>
        /// <param name="fondOcenochnihSredstv"></param>
        /// <returns></returns>
        public async Task RemoveFondOcenochnihSredstvAsync(FondOcenochnihSredstv fondOcenochnihSredstv)
        {
            _context.FondOcenochnihSredstvs.Remove(fondOcenochnihSredstv);
            await _fileModelRepository.RemoveFileAsync(fondOcenochnihSredstv.FileModelId);

            await _fileModelRepository.RemoveFileAsync(fondOcenochnihSredstv.FileModelListPereutverjdeniyaId);

            await _context.SaveChangesAsync();
        }