public ActionResult DeleteConfirmed(int id) { pariwar_bekti_bibarand pariwar_bekti_bibarand = db.pariwar_bekti_bibarand.Find(id); db.pariwar_bekti_bibarand.Remove(pariwar_bekti_bibarand); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "PB_ID,senior_id")] pariwar_bekti_bibarand pariwar_bekti_bibarand) { if (ModelState.IsValid) { db.Entry(pariwar_bekti_bibarand).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.senior_id = new SelectList(db.table_house_senior_details, "senior_id", "Home_no", pariwar_bekti_bibarand.senior_id); return(View(pariwar_bekti_bibarand)); }
// GET: pariwarbektibibarand/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } pariwar_bekti_bibarand pariwar_bekti_bibarand = db.pariwar_bekti_bibarand.Find(id); if (pariwar_bekti_bibarand == null) { return(HttpNotFound()); } return(View(pariwar_bekti_bibarand)); }
// GET: pariwarbektibibarand/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } pariwar_bekti_bibarand pariwar_bekti_bibarand = db.pariwar_bekti_bibarand.Find(id); if (pariwar_bekti_bibarand == null) { return(HttpNotFound()); } ViewBag.senior_id = new SelectList(db.table_house_senior_details, "senior_id", "Home_no", pariwar_bekti_bibarand.senior_id); return(View(pariwar_bekti_bibarand)); }