Пример #1
0
        public ActionResult QuickSearch(SearchUsersModel model)
        {
            if (ModelState.IsValid)
            {
                ADDomain      domain = new ADDomain();
                List <ADUser> users  = domain.QuickSearch(model.SearchValue);
                ViewBag.SearchValue = model.SearchValue;

                return(View("SearchResults", users));
            }

            return(View(model));
        }