public IActionResult Index(string search)
 {
     ViewData.Add("Search", search);
     if (search != null && search.Length >= MIN_SEARCH_LENGTH)
     {
         return(View(new RegisterForSubjectsViewModel(subjectManager.SearchSubjects(search))));
     }
     else
     {
         return(View(new RegisterForSubjectsViewModel(subjectManager.GetSubjects())));
     }
 }
Пример #2
0
        // GET: Groups
        public ActionResult Index()
        {
            var subjects = subjectManager.GetSubjects();

            return(View(subjects));
        }