public ActionResult DeleteConfirmed(int id) { google_map google_map = db.google_map.Find(id); db.google_map.Remove(google_map); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,clinicName,Lat,Long,contact,Region")] google_map google_map) { if (ModelState.IsValid) { db.Entry(google_map).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(google_map)); }
public ActionResult Create([Bind(Include = "Id,clinicName,Lat,Long,contact,Region")] google_map google_map) { if (ModelState.IsValid) { db.google_map.Add(google_map); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(google_map)); }
// GET: Clinics/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } google_map google_map = db.google_map.Find(id); if (google_map == null) { return(HttpNotFound()); } return(View(google_map)); }
partial void Deletegoogle_map(google_map instance);
partial void Updategoogle_map(google_map instance);
partial void Insertgoogle_map(google_map instance);