public ActionResult DeleteConfirmed(long id) { MasterAcuanUpdateting masterAcuanUpdateting = db.AcuanUpdateting.Find(id); db.AcuanUpdateting.Remove(masterAcuanUpdateting); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,Nama,Status")] MasterAcuanUpdateting masterAcuanUpdateting) { if (ModelState.IsValid) { db.Entry(masterAcuanUpdateting).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(masterAcuanUpdateting)); }
public ActionResult Create([Bind(Include = "Id,Nama,Status")] MasterAcuanUpdateting masterAcuanUpdateting) { masterAcuanUpdateting.Status = "1"; if (ModelState.IsValid) { db.AcuanUpdateting.Add(masterAcuanUpdateting); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(masterAcuanUpdateting)); }
// GET: MasterAcuanUpdatetings/Edit/5 public ActionResult Edit(long?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } MasterAcuanUpdateting masterAcuanUpdateting = db.AcuanUpdateting.Find(id); if (masterAcuanUpdateting == null) { return(HttpNotFound()); } return(View(masterAcuanUpdateting)); }