public async Task <IActionResult> Create(CreateDirectorModel model) { if (!ModelState.IsValid) { return(View(model)); } var director = await _directorService.CreateDirectorAsync(model.Name, model.Age, model.Country); return(RedirectToAction(nameof(Index))); }