public ActionResult MusteriEkle() { ViewBag.ilList = ilRepository.GetAll(); return(View()); }
/* * Bir konut için birden fazla resim eklenebilir. Resimlerimiz Byte[] olarak kaydettiğimiz için Resimler içerisine * Base64 ekleyerek resmi gösteriyoruz. * Konutlar üzerinden erişim sağlamaya çalıştığımızda byte[] olarak tuttuğumuz resimlerin Base64 e erişim sağlamak için resimler üzerinden konutlara * erişiyoruz. * Model katmanında entities altında KonutResimViewModel classı bize bir konut için n tane resim ekleme ve bunlara erişim sağlıyor. */ public ActionResult Index() { List <Fotograf> resimList = fotografRepository.GetAll(); ViewBag.ilanTurList = ilanTurRepository.GetAll(); ViewBag.ilList = ilRepository.GetAll(); return(View(resimList)); }
public ActionResult EmlakOfisiEkle() { ViewBag.ilList = ilRepository.GetAll(); return(View()); }
public List <il> GetAllIlService() { return(_ilRepository.GetAll()); }