Exemplo n.º 1
0
        public ActionResult Article(string articleSlug)
        {
            if (articleSlug == null)
            {
                throw new HttpException(404, "An article must be specified.");
            }

            var builder = new ArticleBuilder();
            var article = builder.ValidateArticle(articleSlug);

            if (article == null)
            {
                throw new HttpException(404, "The specified article was not found.");
            }

            return(View(article));
        }