public ActionResult AdresGuncelle(int id) { ViewBag.kisiListesi = DropDownDoldur(); var adres = _adresManager.GetAllAdres(x => x.AdresID == id); AdresViewModel adresvm = new AdresViewModel { AdresID = adres.FirstOrDefault().AdresID, İl = adres.FirstOrDefault().İI, İlce = adres.FirstOrDefault().İlce, KisiID = adres.FirstOrDefault().KisiID }; return(View(adresvm)); }
// GET: Home public ActionResult Index() { HomeViewModel hm = new HomeViewModel(); hm.Adresler = _adresManager.GetAllAdres().ToList(); hm.Kisiler = _kisiManager.GetAllKisi().ToList(); return(View(hm)); }
public ActionResult Index() { HomeViewModel hm = new HomeViewModel(); hm.Kisi = km.GetAllKisi(); hm.Adres = adm.GetAllAdres(); return(View(hm)); }
public ActionResult Index() { return(View(adm.GetAllAdres().ToList())); }