//GET:Most Liked public ActionResult MostLiked() { noteManager nm = new noteManager(); return(View("Index", nm.getAllNote().OrderByDescending(x => x.likeCount).ToList())); }
// GET: Home public ActionResult Index() { noteManager nm = new noteManager(); return(View(nm.getAllNote().OrderByDescending(x => x.modifiedOn).ToList())); }