public ActionResult DeleteConfirmed(int id) { bhuktaniPaune bhuktanipaune = db.bhuktaniPaunes.Find(id); db.bhuktaniPaunes.Remove(bhuktanipaune); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "bhuktaniPauneId,pauneKoNaam,address,code,phone,email,remarks,pauneType")] bhuktaniPaune bhuktanipaune) { if (ModelState.IsValid) { db.Entry(bhuktanipaune).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(bhuktanipaune)); }
public ActionResult Create([Bind(Include = "bhuktaniPauneId,pauneKoNaam,code,remarks")] bhuktaniPaune bhuktanipaune) { if (ModelState.IsValid) { db.bhuktaniPaunes.Add(bhuktanipaune); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(bhuktanipaune)); }
// GET: /BhuktaniPaune/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } bhuktaniPaune bhuktanipaune = db.bhuktaniPaunes.Find(id); if (bhuktanipaune == null) { return(HttpNotFound()); } return(View(bhuktanipaune)); }