public ActionResult AramaSonuc(string ara)
        {
            AraViewModels result = new AraViewModels();

            if (ara != null)
            {
                result.firmalist  = _managerFirma.List(x => x.FirmaAdi.Contains(ara));
                result.haberlist  = _managerHaber.List(x => x.HaberBaslik.Contains(ara) || x.HaberIcerik.Contains(ara));
                result.ilanlist   = _managerIlan.List(x => x.Baslik.Contains(ara) || x.Aciklama.Contains(ara));
                result.duyurulist = _managerDuyuru.List(x => x.DuyuruBaslik.Contains(ara) || x.DuyuruIcerik.Contains(ara));
            }

            return(View(result));
        }
Exemple #2
0
 public ActionResult HaberListele()
 {
     return(View(_managerHaber.List().OrderByDescending(x => x.ID).ToList()));
 }
Exemple #3
0
 public PartialViewResult AnaHaberGetir()
 {
     return(PartialView("_PartialAnaHaberGetir", _managerHaber.List().OrderByDescending(x => x.ID).Take(3).ToList()));
 }