/// <summary>
        /// Список учебных пособий
        /// </summary>
        /// <returns></returns>
        public async Task <IActionResult> Index(UchPosobieFilterModel uchPosobieFilterModel)
        {
            IEnumerable <UchPosobie> uchPosobiya = await _uchPosobiyaRepository.GetUchPosobiyaAsync(uchPosobieFilterModel);

            var uchPosobiyaViewModel = new UchPosobiyaViewModel
            {
                UchPosobiya           = uchPosobiya,
                UchPosobieFilterModel = uchPosobieFilterModel
            };

            return(View(uchPosobiyaViewModel));
        }
        public async Task <IActionResult> UchPosobieCreateOrEdit(UchPosobieEditViewModel uchPosobieEditViewModel, UchPosobieFilterModel uchPosobieFilterModel)
        {
            if (uchPosobieEditViewModel != null)
            {
                await _uchPosobiyaRepository.UpdateUchPosobie(uchPosobieEditViewModel);
            }

            return(RedirectToAction(nameof(Index), uchPosobieFilterModel));
        }