コード例 #1
0
        public List <MatriculaResponse> ListarTodos()
        {
            List <Models.TbAluno> Alunos = AlunoBusiness.ListarTodos();

            List <Models.MatriculaResponse> Response = new List <MatriculaResponse>();

            foreach (Models.TbAluno Aluno in Alunos)
            {
                Models.MatriculaResponse r = CriarResponse(Aluno);
                Response.Add(r);
            }
            return(Response);
        }
コード例 #2
0
        public List <Models.MatriculaResponse> Lista(string nome, string ra, string curso, string turma, int idanoletivo)
        {
            List <Models.TbAluno> Alunos = AlunoBusiness.ConsultarPorNome(nome, ra, curso, turma, idanoletivo);

            List <Models.MatriculaResponse> Response = new List <MatriculaResponse>();

            foreach (Models.TbAluno Aluno in Alunos)
            {
                Models.MatriculaResponse r = CriarResponse(Aluno);
                Response.Add(r);
            }

            return(Response);
        }