void LoadData() { int id = RequestUtils.GetArticleId(this); if (id != 0) { using (GmConnection conn = Global.CreateConnection()) { article = Article.GetArticle(conn, id); } } if (article == null) { article = new Article(); int ag = RequestUtils.GetArticleGroupId(this); if (ag != 0) { article.parentId = ag; } else { article.isGroup = true; } } }