use of com.tomasio.projects.trainning.form.ConsultaForm in project trainning by fernandotomasio.
the class ConsultasInstrutoresController method newConsulta.
@RequestMapping("/new_consulta")
public String newConsulta(Model model, WebRequest request) {
String turmaIdParam = request.getParameter("turmaId");
if (turmaIdParam != null) {
Long turmaId = Long.parseLong(turmaIdParam);
TurmaDTO turma = atividadesEnsinoService.findTurmaEfetiva(turmaId);
model.addAttribute("turma", turma);
model.addAttribute(new ConsultaForm());
return "consultas_instrutores/form_consulta";
} else {
return "redirect:select_turma";
}
}
Aggregations