Esempio n. 1
0
 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));
 }