public void Delete(int id) { if (hasPermission() == false) { echoText(lang("exNoPermission")); return; } MicroblogComment c = MicroblogComment.findById(id); if (c == null) { echoText(lang("exDataNotFound")); return; } c.delete(); echoAjaxOk(); }