//
        // GET: /GovenrmentBuilding/Edit/5

        public ActionResult Edit(string id)
        {
            GovernmentBuilding gb = governBuildings.GetPlace(id);

            if (gb == null)
            {
                return(HttpNotFound());
            }
            return(View(gb));
        }
 public ActionResult EditConfirmed(GovernmentBuilding gb)
 {
     try
     {
         // TODO: Add update logic here
         governBuildings.UpdatePlace(gb);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
 public ActionResult CreateConfirmed(GovernmentBuilding gb)
 {
     try
     {
         // TODO: Add insert logic here
         governBuildings.InsertPlace(gb);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
        public ActionResult SameRatingPlaces(string id)
        {
            try
            {
                // TODO: Add delete logic here
                GovernmentBuilding p = governBuildings.GetPlace(id);
                var result           = HelpFunctions.LocateHelper <GovernmentBuilding> .GetSameRatingPlaces(governBuildings, p);

                return(View(result));
            }
            catch
            {
                return(View());
            }
        }