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