public ActionResult AdresEkle(AdresViewModel avm)
 {
     TempData["Message"] = adm.AddAdres(new Adres
     {
         Il     = avm.Il,
         Ilce   = avm.Ilce,
         KisiID = avm.KisiID
     });
     return(RedirectToAction("Index"));
 }
Exemple #2
0
 public ActionResult AdresEkle(AdresViewModel adresvm)
 {
     //Adres a = new Adres();
     //a.AdresID = adresvm.AdresID;
     //a.İI = adresvm.İl;
     //a.İlce = adresvm.İlce;
     //return View(a);
     TempData["Message"] = _adresManager.AddAdres(new Adres {
           İI     = adresvm.İl,
           İlce   = adresvm.İlce,
           KisiID = adresvm.KisiID
       });
     return(RedirectToAction("../Home/Index"));
 }