public ActionResult Create(RaceCreateViewModel model) { if (model.Participants == null) { ModelState.AddModelError(string.Empty, "Заезд должен иметь участников!"); model = _raceService.GetRaceCreateViewModel(DateTime.Parse(model.DateTimeOfRace), model.NumberRaceInDay); return(View(model)); } _raceService.AddNewRace(model); return(RedirectToAction("Index")); }