public ActionResult DeleteConfirmed(int id) { hospital_manual hospital_manual = db.hospital_manual.Find(id); db.hospital_manual.Remove(hospital_manual); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "hospital_id,hospital_name,hospital_address,hospital_state,hospital_district,hospital_city,hospital_pincode,hospital_phone,hospital_email,hospital_latitude,hospital_longitude,hosp_speciality_id,avgRating,entityId,blacklisted,location")] hospital_manual hospital_manual) { if (ModelState.IsValid) { db.Entry(hospital_manual).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.hosp_speciality_id = new SelectList(db.hospitalSpecialities, "hosp_speciality_id", "Speciality_Name", hospital_manual.hosp_speciality_id); return(View(hospital_manual)); }
// GET: hospital_manual/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } hospital_manual hospital_manual = db.hospital_manual.Find(id); if (hospital_manual == null) { return(HttpNotFound()); } return(View(hospital_manual)); }
// GET: hospital_manual/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } hospital_manual hospital_manual = db.hospital_manual.Find(id); if (hospital_manual == null) { return(HttpNotFound()); } ViewBag.hosp_speciality_id = new SelectList(db.hospitalSpecialities, "hosp_speciality_id", "Speciality_Name", hospital_manual.hosp_speciality_id); return(View(hospital_manual)); }