public String getBoard(@PathVariable("projectid") int pid, @PathVariable("sprintid") int sid, Model model) {
model.addAttribute("projectid", pid);
model.addAttribute("sprintid", sid);
Project p = this.projectService.findProjectById(pid);
if (p == null) {
throw new ResourceNotFoundException(pid);
}
model.addAttribute("projectname", p.getName());
Sprint s = this.sprintService.findSprintById(sid);
if (s == null) {
throw new ResourceNotFoundException(sid);
}
model.addAttribute("sprintslogan", s.getSlogan());
return "board/board";
}