Exemplo n.º 1
0
        // GET: Home
        public ActionResult Index()
        {
            var VM       = new Models.VielModelComments();
            var Comments = VM.Comments.Take(5);

            return(View(Comments));
        }
Exemplo n.º 2
0
        public ActionResult _CommentsListById(int id)
        {
            var VM       = new Models.VielModelComments();
            var Comments = VM.Comments.Where(c => c.ID == id);

            return(View("_CommentList", Comments));
        }