Пример #1
0
        public ActionResult Index(string search, int?page)
        {
            IEnumerable <Employee> employee = employeeBusiness.Display();

            return(View(employee.Where(x => x.name.StartsWith(search ?? "")).ToPagedList(page ?? 1, 3)));
            //return View(search != null ? employee.Where(x => x.name.StartsWith(search)) : employee);
        }