public ActionResult Detay(int id, IlceModel model) { Ilce ilce = manager2.Bul(id); model.Ilce = ilce; return(View(model)); }
public PartialViewResult GetIlceler(int id) { IlceModel model = new IlceModel(); model.list = ilceManager.GenelListe().Where(x => x.IlId == id).ToList(); return(PartialView("IlcelerPartial", model)); }
public ActionResult Ilce() { IlceModel model = new IlceModel(); model.list = manager2.Liste(); return(View(model)); }
public ActionResult Sil(int id, IlceModel model) { Ilce ilce = manager.Bul(id); manager.Sil(ilce); manager.Save(); return(RedirectToAction("Ilce")); }
public ActionResult Guncelle(int id) { IlceModel model = new IlceModel(); model.Ilce = manager2.Bul(id); model.ilForDropdown = DropDownDoldurIl(); return(View(model)); }
public ActionResult Ekle() { //Dropdown içim aşağıdaki kodları yazmamız gerekir IlceModel m = new IlceModel(); m.ilForDropdown = DropDownDoldurIl(); return(View(m)); }
public ActionResult Guncelle(int id, IlceModel model) { Ilce ilce = manager.Bul(id); ilce.Ad = model.ilce.Ad; ilce.IlId = model.ilce.IlId; manager.Guncelle(ilce); manager.Save(); return(RedirectToAction("Ilce")); }
public ActionResult Ekle(IlceModel model) { Ilce ilce = new Ilce(); ilce.Ad = model.ilce.Ad; ilce.IlId = model.ilce.IlId; manager.Ekle(ilce); manager.Save(); return(RedirectToAction("Ilce")); }
public KonumModel() { Ulke = new UlkeModel(); Sehir = new SehirModel(); Ilce = new IlceModel(); }