Exemplo n.º 1
0
        // 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
        }
Exemplo n.º 2
0
 // 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()));
 }
Exemplo n.º 3
0
        // GET: Home
        public ActionResult Index()
        {
            BusinessLayer.Test test = new BusinessLayer.Test();
            //test.InsertTest();
            //test.UpdateTest();
            //test.DeleteTest();

            test.CommentTest();
            return(View());
        }
Exemplo n.º 4
0
        public ActionResult Index()
        {
            BusinessLayer.Test t = new BusinessLayer.Test();

            if (Session["login"] != null)
            {
                return(RedirectToAction("AdminLogin"));
            }
            else
            {
                return(RedirectToAction("ListEmployee"));
            }
        }
Exemplo n.º 5
0
 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());
        }
Exemplo n.º 7
0
        // 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());
        }
Exemplo n.º 8
0
 public ActionResult deneme()
 {
     BusinessLayer.Test test = new BusinessLayer.Test();
     return(View());
 }