コード例 #1
0
        public ActionResult Buscar(string descricao)
        {
            var alunos = new List <Aluno>();

            if (!string.IsNullOrEmpty(descricao))
            {
                alunos = _alunoService.GetAlunosByDescription(descricao);
            }
            else
            {
                alunos = _alunoService.GetAlunos();
            }
            return(View("index", alunos));
        }