コード例 #1
0
        public ActionResult SliderListele()
        {
            if (Session["kullaniciAdi"] == null)
            {
                return(RedirectToAction("Giris", "Login"));
            }
            List <slider> sliderList = sliderRepository.Listele();

            return(View(sliderList));
        }
コード例 #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());
        }