public ActionResult Ekle()
        {
            ViewBag.IlanKategoriID = new SelectList(_managerIlanKategori.List(), "IlanKategoriID", "KategoriAdi");
            ViewBag.FirmaID        = new SelectList(_managerFirma.List(), "ID", "FirmaAdi");

            return(View());
        }
        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 Index()
 {
     return(View(_managerFirma.List().OrderByDescending(x => x.ID).ToList()));
 }
 public List <Firma> firmaGetir()
 {
     return(fm.List());
 }