public IActionResult GetExams() { string search = HttpContext.Request.Query["search"]; if (search == "") { ViewBag.exams = Exam.FindAllExam(); } else { ViewBag.exams = Exam.FindAllExam(search); } return(View()); }