Пример #1
0
        public IActionResult AddFilm(FilmModel filmModel)
        {
            if (ModelState.IsValid && _autoModeration.PassAutoModeration(filmModel.Description))
            {
                _db.AddFilm(filmModel);

                return(RedirectToAction("Index", "Home"));
            }

            return(View(filmModel));
        }