private void setComment() { var result = WebboardController.getComment(comment_id, null); var info = result[0]; if (info == null) { ShowMessage(Page, "ไม่พบความเห็นนี้"); return; } info.description = txtDescription.Text; info.lastupdate_by = (SessionApp.user_info == null) ? "No Login" : SessionApp.user_info.user_name; info.lastupdate_date = DateTime.Now; var resulttopic = WebboardController.setComment(info); if (result != null) { bindComment(); ShowMessage(Page, "แก้ไขสำเร็จ"); } else { ShowMessage(Page, "แก้ไขผิดพลาด"); } }