public ActionResult DeleteConfirmed(int id) { ClaseArl claseArl = db.Tb_ClaseArl.Find(id); db.Tb_ClaseArl.Remove(claseArl); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Carl_Id,Carl_Nom,Carl_Registro")] ClaseArl claseArl) { if (ModelState.IsValid) { db.Entry(claseArl).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(claseArl)); }
public ActionResult Create([Bind(Include = "Carl_Id,Carl_Nom,Carl_Registro")] ClaseArl claseArl) { if (ModelState.IsValid) { db.Tb_ClaseArl.Add(claseArl); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(claseArl)); }
// GET: ClaseArl/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } ClaseArl claseArl = db.Tb_ClaseArl.Find(id); if (claseArl == null) { return(HttpNotFound()); } return(View(claseArl)); }