private void addTopic() { TopicInfo top = new TopicInfo(); top.title = txtTitle.Text; top.description = txtDescription.Text; top.create_by = (SessionApp.user_info == null) ? "ไม่เป็นสามาชิก" : SessionApp.user_info.user_name; var result = WebboardController.addTopic(top); if (result == null) { ShowMessage(Page, "เพิ่มผิดพลาด"); } else { RedirectTo("~/Webboard/TopicDetail?topic_id=" + result.topic_id); } }