Пример #1
0
        //[ValidateAntiForgeryToken]
        public IActionResult AddFacultyRole(string name)
        {
            if (!string.IsNullOrWhiteSpace(name))
            {
                _repository.AddFacultyRole(name);
            }

            if (_repository.SaveAll())
            {
                return(RedirectToAction("FacultyRoles"));
            }
            else
            {
                return(View());
            }
        }