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)); }
public ActionResult HaberListele() { return(View(_managerHaber.List().OrderByDescending(x => x.ID).ToList())); }
public PartialViewResult AnaHaberGetir() { return(PartialView("_PartialAnaHaberGetir", _managerHaber.List().OrderByDescending(x => x.ID).Take(3).ToList())); }