//[ValidateAntiForgeryToken] public IActionResult AddSpecialty(string name) { if (!string.IsNullOrWhiteSpace(name)) { _repository.AddSpecialty(name); } if (_repository.SaveAll()) { return(RedirectToAction("Specialties")); } else { return(View()); } }