示例#1
0
        private void View_OnPageGetContent(object sender, CustomEventArgs.PageEventArgs args)
        {
            var page = this.pageService.GetPageByTitle(args.Title.Replace('-', ' '));

            if (page == null)
            {
                Response.StatusCode = 404;
                Response.Status     = "404 not found";
                Response.End();
                return;
            }

            this.View.Model.Content = page.Content;
            this.View.Model.Title   = page.Title;
        }
示例#2
0
 private void View_OnGetPendingEdits(object sender, CustomEventArgs.PageEventArgs args)
 {
     this.View.Model.Results = this.contentSubmissionService.GetSubmissions(args.Title.Replace('-', ' ')).AsQueryable();
 }