List<Taxonomy> subjects = Taxonomy.filterSubjectsByName(name);
jsonData = Json.toJson(subjects);
}
return ok(jsonData);
}
<BUG>public static Result view(Long id) {
User user = User.findByEmail(request().username());
return ok(view.render(Subject.findById(id), user));
</BUG>
}

List<Taxonomy> subjects = Taxonomy.filterSubjectsByName(name);
jsonData = Json.toJson(subjects);
}
return ok(jsonData);
}
public static Result view(Long id) {
Subject subject = Subject.findById(id);
if (subject == null) return notFound("There is no Subject with ID " + id);
User user = User.findByEmail(request().username());
return ok(view.render(subject, user));
}
