AjaxExamples.Controllers.AjaxHelpersController.AddComment C# (CSharp) Method

AddComment() private method

private AddComment ( string comment ) : System.Web.Mvc.ActionResult
comment string
return System.Web.Mvc.ActionResult
        public ActionResult AddComment(string comment)
        {
            _comments.Add("<li>" + comment + "</li>");
            return Content(string.Join("\n", _comments.ToArray()));
        }