Пример #1
0
        public async Task <IActionResult> Add(Subjects subject)
        {
            if (!ModelState.IsValid)
            {
                return(View("Create"));
            }

            var model = new AddViewModel();

            await _subjectsRepository.AddAsync(subject);

            return(RedirectToAction(nameof(this.Index)));
        }