コード例 #1
0
ファイル: HomeController.cs プロジェクト: duyguogunc/egitim5
        public ActionResult EkitapSonuclar()
        {
            EkitapRep rep      = new EkitapRep();
            var       sonuclar = rep.GetAll().Where(x => x.Baslik.ToLower().Contains(Session["aranacak"].ToString()));

            return(View(sonuclar));
        }
コード例 #2
0
        // GET: EKitap

        public ActionResult Index()
        {
            EkitapRep eRep = new EkitapRep();

            return(View(eRep.GetAll().OrderByDescending(x => x.EKitapID).Take(20)));
        }