public ActionResult Create(CountryCreateViewModel countryModel) { if (ModelState.IsValid) { var operationStatus = _locationService.CountryCreate(countryModel); if (operationStatus == CountryStatusViewModel.Success) { return(RedirectToAction("Index")); } else if (operationStatus == CountryStatusViewModel.Dublication) { ModelState.AddModelError("", "Країна з даним іменем вже існує"); } } return(View(countryModel)); }