Пример #1
0
        public IActionResult Create(app.domain.Director director)
        {
            if (ModelState.IsValid)
            {
                _directorService.CreateDirector(new app.service.Directors.Commands.CreateDirector.CreateDirectorCommand
                {
                    Name = director.Name
                });


                return(RedirectToAction(nameof(Index)));
            }
            return(View(director));
        }