Пример #1
0
        public ActionResult AlertComments(int alertId)
        {
            IEnumerable <Comment> comments = commentManager.GetByAlert(alertId);

            return(PartialView("List", new CommentViewModel
            {
                Comments = comments,
                ParentId = alertId,
                ParentType = CommentParentType.ALERT
            }));
        }