Пример #1
0
      public virtual ActionResult Details(long id)
      {
          var note = Note.Details(id, NoteType.Note);
          var cl   = Comment.CommentList(id, CommentType.Note, 1, WebContext.Site);

          ViewData["commentlist"] = cl;
          Title = note.Title;
          ViewData["NowPage"]   = 1;
          ViewData["PageCount"] = note.CommentCount;
          ViewLogLog.Update(VisitLogType.Note, id, WebUser);
          return(View(note));
      }