예제 #1
0
        public IActionResult GetAll(string[] searchTerm)

        {
            ViewBag.Best = ExperienceService.BestExperience();
            string[]          search = new string[10];
            List <Experience> list   = new List <Experience>();

            if (!(searchTerm.Count() == 0))
            {
                foreach (var ch in searchTerm)
                {
                    var list2 = ExperienceService.GetAllExperienceDetails(ch).ToList();
                    list = list.Concat(list2).ToList();
                }
                ;

                return(View(list));
            }
            return(View(ExperienceService.GetAllExperienceDetails("").ToList()));
        }