Exemplo n.º 1
0
        public ActionResult Edit(int?id)
        {
            ArticleComment comment;

            if (id.HasValue)
            {
                comment = ArticleComments.GetByID(id.Value);
            }
            else
            {
                comment = new ArticleComment();
            }

            return(View(model: comment));
        }