Example #1
0
        public ActionResult GerarBoletim(GerarBoletimViewModel gerarBoletim)
        {
            IEnumerable <Nota> listaNotas = _boletimRepositorio.RetornaBoletim(gerarBoletim);

            gerarBoletim.ListaAlunos = _boletimRepositorio.RetornaAlunos();
            gerarBoletim.ListaProfessorDisciplinas = _boletimRepositorio.RetornaProfDisciplinas();
            gerarBoletim.ListaBimestres            = _boletimRepositorio.RetornaBimestres();
            gerarBoletim.ListaAnos = _boletimRepositorio.RetornaAnos();

            gerarBoletim.ListaNotas = listaNotas.ToList();

            return(View(gerarBoletim));
        }