Beispiel #1
0
        public List <SelectListItem> DropDownDoldur()
        {
            List <SelectListItem> kisilistesi =
                (from a in km.GetAllKisi().ToList()
                 select new SelectListItem
            {
                Text = a.KisiAdi + " " + a.KisiSoyadi,
                Value = a.KisiID.ToString()
            }).ToList();

            return(kisilistesi);
        }
Beispiel #2
0
        public ActionResult KisiGuncelle(int id)
        {
            var           kisi = _kisiManager.GetAllKisi(x => x.KisiID == id);
            KisiViewModel kis  = new KisiViewModel
            {
                KisiID = kisi.FirstOrDefault().KisiID,
                Adi    = kisi.FirstOrDefault().Adi,
                Soyadi = kisi.FirstOrDefault().Soyadi,
                Yas    = kisi.FirstOrDefault().Yas
            };

            return(View(kis));
        }
Beispiel #3
0
      public ActionResult AdresSil(int id)
      {
          var            adres = _adresManager.GetAllAdres(x => x.AdresID == id);
          AdresViewModel ads   = new AdresViewModel
          {
              AdresID = adres.FirstOrDefault().AdresID,
              İl      = adres.FirstOrDefault().İI,
              İlce    = adres.FirstOrDefault().İlce,
              KisiID  = adres.FirstOrDefault().KisiID
          };
          var Kisi = _kisiManager.GetAllKisi(x => x.KisiID == ads.KisiID).FirstOrDefault();

          ViewBag.AdSoyad = Kisi.Adi + " " + Kisi.Soyadi;
          return(View(ads));
      }
Beispiel #4
0
        // GET: Home
        public ActionResult Index()
        {
            HomeViewModel hm = new HomeViewModel();

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

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