use of easytests.personal.dto.TopicDto in project easy-tests by malinink.
the class TopicsController method update.
@GetMapping("update/{topicId}/")
public String update(Model model, @PathVariable Integer topicId, @PathVariable("subjectId") Integer subjectId) {
final SubjectModelInterface subjectModel = getCurrentSubjectModel(subjectId, false);
final TopicModelInterface topicModel = this.getTopicModel(topicId, subjectId);
final TopicDto topic = new TopicDto();
topic.map(topicModel);
setUpdateBehaviour(model);
model.addAttribute("topic", topic);
model.addAttribute("subjectId", subjectId);
return "topics/form";
}
use of easytests.personal.dto.TopicDto in project easy-tests by malinink.
the class TopicsController method create.
@GetMapping("create/")
public String create(Model model, @PathVariable("subjectId") Integer subjectId) {
final SubjectModelInterface subjectModel = getCurrentSubjectModel(subjectId, false);
final TopicDto topic = new TopicDto();
setCreateBehaviour(model);
model.addAttribute("topic", topic);
model.addAttribute("subjectId", subjectId);
return "topics/form";
}
Aggregations