Beispiel #1
0
        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"));
        }
Beispiel #2
0
 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));
 }
Beispiel #3
0
        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));
        }
Beispiel #4
0
        // 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);