Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @RequestMapping(value = "/wynikiForm.html", method = RequestMethod.GET)
- public String showFormWyniki(Model model, @RequestParam(name = "id", defaultValue = "-1") Optional<Wybory> wyboryy) {
- Wyniki wyniki = new Wyniki();
- model.addAttribute("list", kandydatService.getAllCount());
- wyniki.setWybory(wyboryy.get());
- model.addAttribute("wyniki", wyniki);
- return "wynikiForm";
- }
- @GetMapping(path = "/wynikiForm.html")
- public String home(Model model) {
- return "home";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement