// GET: Home public ActionResult Index() { BusinessLayer.Test test = new BusinessLayer.Test(); return(View()); //return View(sm.GetAllService().OrderByDescending(x => x.ModifiedOn).ToList(); //return View(sm.GetAllServiceQueryable().OrderByDescending(x => x.ModifiedOn).ToList()); //Bu sorgu farklı olarak oderbydescending ile birlikte sql sorgusu olarak çalıştırılacak }
// GET: Home public ActionResult Index() { BusinessLayer.Test databasetest = new BusinessLayer.Test(); //databasetest.InsertTest(); //Tekrar çalışmasın diye kapattık! Test etmek amaçlı yapıyoruz! //databasetest.UpdateTest(); //databasetest.DeleteUpdate(); //databasetest.YorumTest(); return(View(makaleyonet.ListQueryable().Where(x => x.Taslakmi == false).OrderByDescending(x => x.OlusturmaTarihi).ToList())); }
// GET: Home public ActionResult Index() { BusinessLayer.Test test = new BusinessLayer.Test(); //test.InsertTest(); //test.UpdateTest(); //test.DeleteTest(); test.CommentTest(); return(View()); }
public ActionResult Index() { BusinessLayer.Test t = new BusinessLayer.Test(); if (Session["login"] != null) { return(RedirectToAction("AdminLogin")); } else { return(RedirectToAction("ListEmployee")); } }
public ActionResult Index() { BusinessLayer.Test t = new BusinessLayer.Test(); if (Session["login"] != null) { JobAdvManager jm = new JobAdvManager(); return(View(jm.List().OrderByDescending(x => x.publishDate).ToList())); } else { return(RedirectToAction("TesterLogin")); } }
// GET: Home public ActionResult Index() { //object o = 0; //int a = 1; //int c = a / (int)o; //throw new Exception("Herhangi bir hata oluştu."); BusinessLayer.Test test = new BusinessLayer.Test(); // CategoyController üzerinden gelen view talebi ve model.. // //if (TempData["mm"] != null) //{ // return View(TempData["mm"] as List<Note>); //} return(View(noteManager.ListQueryable().Where(x => x.IsDraft == false).OrderByDescending(x => x.ModifiedOn).ToList())); //return View(nm.GetAllNoteQueryable().OrderByDescending(x => x.ModifiedOn).ToList()); }
// GET: Home public ActionResult Index() { //object o = 0; //int a = 1; //int c = a / (int)o; BusinessLayer.Test test = new BusinessLayer.Test(); //test.InsertTest(); //test.UpdateTest(); //test.DeleteTest(); //test.CommentTest(); //Category Controller üzerinden gelen View talebi. //if (TempData["mm"] != null) //{ // return View(TempData["mm"] as List<Note>); //} return(View(noteManager.ListQueryable().Where(x => x.IsDraft == false).OrderByDescending(x => x.ModifiedOn).ToList())); //return View(nm.GetAllNotesQueryable().OrderByDescending(x => x.ModifiedOn).ToList()); }
public ActionResult deneme() { BusinessLayer.Test test = new BusinessLayer.Test(); return(View()); }