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