public ActionResult Create(Institution user) { if (repo.AlreadyExists(user)) { ModelState.AddModelError(nameof(user.Name), "Institution with such name already exists"); } if (ModelState.IsValid) { repo.CreateInstitution(user); return(RedirectToAction("Index")); } return(View(user)); }