public ActionResult DeleteConfirmed(int id) { Indices1 indices1 = db.Indices1.Find(id); db.Indices1.Remove(indices1); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "IdIndice,Mes,Anio,Indice,Fecha_Publicacion,Clave_Indices,MesTranscurrido,AnioMulta")] Indices1 indices1) { if (ModelState.IsValid) { db.Entry(indices1).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(indices1)); }
public ActionResult Create([Bind(Include = "IdIndice,Mes,Anio,Indice,Fecha_Publicacion,Clave_Indices,MesTranscurrido,AnioMulta")] Indices1 indices1) { if (ModelState.IsValid) { db.Indices1.Add(indices1); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(indices1)); }
// GET: Indices1/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Indices1 indices1 = db.Indices1.Find(id); if (indices1 == null) { return(HttpNotFound()); } return(View(indices1)); }