// コンストラクタ public BbsPostAction(HatomaruXml model, AbsPath path, HttpRequest req) : base(model, path, req){ string[] fragments = path.GetFragments(BasePath); if(model is HatomaruBbs){ if(fragments.Length > 1 && fragments[0].Equals(BbsViewArticle.Id)){ int articleId = fragments[1].ToInt32(); myTargetArticle = Bbs.GetArticle(articleId); } } else { myTargetArticle = new Article(); myTargetArticle.CommentTo = path.RemoveLast(CommentPath); } myResponse = new NoCacheResponse(Model, path); GetHtml(); }
// コンストラクタ public CacheViewerAction(CacheViewer model, AbsPath path) : base(model, path){ myResponse = new NoCacheResponse(Model, path); GetHtml(); }