public ActionResult Edit([Bind(Include = "Id,Name,Description,Latitude,Longitude")] Location location) { if (ModelState.IsValid) { db.Entry(location).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(location)); }