示例#1
0
        public ActionResult Index()
        {
            //Test test = new Test();
            ////test.InsertTest();
            ////test.UpdateTest();
            //test.DeleteTest();
            //return View();

            return(View(nm.GetAllNotes().OrderByDescending(x => x.ModifiedOn).ToList()));
        }
        // GET: Home
        public ActionResult Index()
        {
            NoteManager nm = new NoteManager();

            return(View(nm.GetAllNotes()));
            //.OrderByDescending(x => x.ModifiedOn).ToList()) ;
        }
示例#3
0
        // GET: Home
        public ActionResult Index()
        {
            if (TempData["category"] != null)
            {
                return(View(TempData["category"] as List <Note>));
            }


            //noteManager.GetAllNotesQueryable().OrderByDescending(x => x.ModifiedOn).ToList()
            return(View(_noteManager.GetAllNotes().Where(x => x.isDraft == false).OrderByDescending(x => x.ModifiedOn)));
        }
示例#4
0
        // GET: Home
        public ActionResult Index()
        {
            //CatrgoryController üzerinden gelen view ve model talebi
            //TempData["mm"] = cat.Notes;
            //return RedirectToAction("Index", "Home");

            NoteManager nm = new NoteManager();


            return(View(nm.GetAllNotes().OrderByDescending(x => x.ModifiedOn).ToList()));
            //  return View(nm.GetAllNoteQueryable().OrderByDescending(x => x.ModifiedOn).ToList()); //Sıralamayı Sql üstünde yapılmasını sağlıyor
        }
示例#5
0
        // GET: Home
        public ActionResult Index()
        {
            //CategoryController üzerinden gelen view talebi ve model...
            //if (TempData["model"] != null)
            //{
            //	return View(TempData["model"] as List<Note>);
            //}

            NoteManager nm = new NoteManager();

            return(View(nm.GetAllNotes().OrderByDescending(x => x.ModifiedOn).ToList()));
            //return View(nm.GetAllNoteQueryable().OrderByDescending(x => x.ModifiedOn).ToList());
        }
示例#6
0
        // GET: Home
        public ActionResult Index()
        {
            //Test Commands

            //BusinessLayer.Test test = new BusinessLayer.Test();
            //test.CommentTest();

            //Listing notes by category
            //if (TempData["mod"] != null)
            //{
            //    return View(TempData["mod"] as List<Note>);
            //}

            //Listing All Notes
            NoteManager nm = new NoteManager();


            return(View(nm.GetAllNotes().OrderByDescending(x => x.ModifiedOn).ToList()));
            //return View(nm.GetAllNotes().OrderByDescending(x => x.ModifiedOn).ToList());
        }
 public ActionResult Index(int?id)
 {
     return(View(noteManager.GetAllNotes()));
 }
示例#8
0
        public ActionResult MostLiked()
        {
            NoteManager nm = new NoteManager();

            return(View("Index", nm.GetAllNotes().OrderByDescending(x => x.LikeCount).ToList()));
        }
示例#9
0
 // GET: En çok beğenilenler notların listesini döndüren action
 public ActionResult MostLiked()
 {
     return(View("Index", noteManager.GetAllNotes().OrderByDescending(q => q.LikeCount).ToList()));
 }