// GET: Home public ActionResult Index() { var VM = new Models.VielModelComments(); var Comments = VM.Comments.Take(5); return(View(Comments)); }
public ActionResult _CommentsListById(int id) { var VM = new Models.VielModelComments(); var Comments = VM.Comments.Where(c => c.ID == id); return(View("_CommentList", Comments)); }