示例#1
0
      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));
      }
示例#2
0
        // GET: Home
        public ActionResult Index()
        {
            HomeViewModel hm = new HomeViewModel();

            hm.Adresler = _adresManager.GetAllAdres().ToList();
            hm.Kisiler  = _kisiManager.GetAllKisi().ToList();
            return(View(hm));
        }
示例#3
0
        public ActionResult Index()
        {
            HomeViewModel hm = new HomeViewModel();

            hm.Kisi  = km.GetAllKisi();
            hm.Adres = adm.GetAllAdres();
            return(View(hm));
        }
示例#4
0
 public ActionResult Index()
 {
     return(View(adm.GetAllAdres().ToList()));
 }