public ActionResult ProjeListele()
        {
            if (Session["kullaniciAdi"] == null)
            {
                return(RedirectToAction("Giris", "Login"));
            }
            List <proje> projelist = projeRepository.Listele();

            return(View(projelist));
        }
Exemple #2
0
        public ActionResult Index()
        {
            List <calısan> calisanList = new List <calısan>();
            List <proje>   projeList   = new List <proje>();
            List <haber>   haberList   = new List <haber>();
            List <slider>  sliderList  = new List <slider>();
            List <mesaj>   mesajList   = new List <mesaj>();


            calisanList           = calısanRepository.Listele();
            ViewBag.calisanListem = calisanList;

            projeList           = projeRepository.Listele();
            ViewBag.projeListem = projeList;

            haberList           = haberRepository.Listele();
            ViewBag.haberListem = haberList;

            sliderList           = sliderRepository.Listele();
            ViewBag.sliderListem = sliderList;

            return(View());
        }