Пример #1
0
        public ActionResult GetCommentsForSite(string number)
        {
            var model = new CommentsModel();

            model.FindComments(int.Parse(number));
            return(View("CommentsPanel", model));
        }
Пример #2
0
        // GET api/comment/5
        public CommentsModel Get(int id)
        {
            var foundComments = new CommentsModel();

            foundComments.FindComments(id);
            return(foundComments);
        }
Пример #3
0
        public ActionResult DeleteComment(string commentId, string siteId)
        {
            var model = new CommentsModel();

            model.DeleteComment(int.Parse(commentId));
            model.FindComments(int.Parse(siteId));
            return(View("CommentsPanel", model));
        }