Exemplo n.º 1
0
        //GET:Most Liked
        public ActionResult MostLiked()
        {
            noteManager nm = new noteManager();

            return(View("Index", nm.getAllNote().OrderByDescending(x => x.likeCount).ToList()));
        }
Exemplo n.º 2
0
        // GET: Home
        public ActionResult Index()
        {
            noteManager nm = new noteManager();

            return(View(nm.getAllNote().OrderByDescending(x => x.modifiedOn).ToList()));
        }