public ActionResult Create(Community community)
        {
            if (ModelState.IsValid)
            {
                db.Communities.Add(community);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            ViewBag.MunicipalID = new SelectList(db.Municipalities, "MunicipalID", "Name", community.MunicipalID);
            return View(community);
        }
 public ActionResult Edit(Community community)
 {
     if (ModelState.IsValid)
     {
         db.Entry(community).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     ViewBag.MunicipalID = new SelectList(db.Municipalities, "MunicipalID", "Name", community.MunicipalID);
     return View(community);
 }