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()) ; }
// 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))); }
// 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 }
// 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()); }
// 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())); }
public ActionResult MostLiked() { NoteManager nm = new NoteManager(); return(View("Index", nm.GetAllNotes().OrderByDescending(x => x.LikeCount).ToList())); }
// 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())); }