public ActionResult DeleteConfirmed(int id) { CIU cIU = db.Tbl_CIU.Find(id); db.Tbl_CIU.Remove(cIU); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Pk_Id_CIU,Codigo_CIU,Descripcion")] CIU cIU) { if (ModelState.IsValid) { db.Entry(cIU).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(cIU)); }
public ActionResult Create([Bind(Include = "Pk_Id_CIU,Codigo_CIU,Descripcion")] CIU cIU) { if (ModelState.IsValid) { db.Tbl_CIU.Add(cIU); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(cIU)); }
private void Reset_Click(object sender, RoutedEventArgs e) { NTBox.Clear(); NUP.Clear(); NMP.Clear(); CIU.Clear(); CIM.Clear(); DF.Clear(); MIT.Clear(); PIM.Clear(); isMasked.IsChecked = false; Result.Items.Clear(); }
// GET: CIUs/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CIU cIU = db.Tbl_CIU.Find(id); if (cIU == null) { return(HttpNotFound()); } return(View(cIU)); }