public ActionResult Edit([Bind(Include = "Id,Name,Address,MainPhone,LocationNote")] HfedLocation hfedLocation)
 {
     if (ModelState.IsValid)
     {
         db.Entry(hfedLocation).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(hfedLocation));
 }
        public ActionResult DeleteConfirmed(int id)
        {
            HfedLocation hfedLocation = db.HfedLocations.Find(id);

            if (hfedLocation != null)
            {
                db.HfedLocations.Remove(hfedLocation);
            }
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
        public ActionResult Create([Bind(Include = "Id,Name,Address,Location,MainPhone,LocationNote")] HfedLocation hfedLocation)
        {
            if (ModelState.IsValid)
            {
                db.HfedLocations.Add(hfedLocation);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(hfedLocation));
        }
        // GET: HfedLocations/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            HfedLocation hfedLocation = db.HfedLocations.Find(id);

            if (hfedLocation == null)
            {
                return(HttpNotFound());
            }
            return(View(hfedLocation));
        }