public IActionResult Add(UniversityViewModel vm)
        {
            if (!ModelState.IsValid)
            {
                return(View());
            }

            var universityToAdd = new BLL.Models.University(vm.TitleOrFullName, vm.SubtitleOrAbbreviation);

            var success = _managementService.AddUniversity(universityToAdd);

            if (!success)
            {
                ModelState.AddModelError("ERROR", "Uczelnia o takiej nazwie lub skrócie już istnieje");
                return(View(vm));
            }

            return(RedirectToAction("Universities"));
        }
 public void Add(University university)
 {
     _managementService.AddUniversity(university);
 }