Exemplo n.º 1
0
        public ViewResult Index(string searchString)
        {
            IEnumerable <Employee> depto = FuncionarioService.GetAllFuncionario();

            if (!String.IsNullOrEmpty(searchString))
            {
                depto = depto.Where(o => o.Name.ToUpper().Contains(searchString.ToUpper()));
            }

            return(View(depto));
        }