public Question postQuestion(String question) {
return dao.addQuestion(current, question);
}
public Comment addComment(long linkedId, String comment) {
Linked linked = em.find(Linked.class, linkedId);
if (linked != null) {
return dao.addComment(linked, current, comment);
}
return null;
}