public ActionResult Guncelle(int id, Birimler birim)
 {
     if (ModelState.IsValid)
     {
         _birimlerService.Update(birim);
         return(RedirectToAction("Index"));
     }
     return(View(birim));
 }
 public ActionResult Guncelle(int id, Birimler birim)
 {
     if (ModelState.IsValid)
     {
         birim.BelediyeId = Convert.ToInt32(Session["BelediyeId"]);
         _birimlerService.Update(birim);
         return(RedirectToAction("Index"));
     }
     return(View(birim));
 }