public ActionResult DeleteConfirmed(int id) { SIS_HectareasCobradas sIS_HectareasCobradas = db.SIS_HectareasCobradas.Find(id); db.SIS_HectareasCobradas.Remove(sIS_HectareasCobradas); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,NumeroHectareas,Clave,Cuenta,Precio,AñoDePago")] SIS_HectareasCobradas sIS_HectareasCobradas) { if (ModelState.IsValid) { db.Entry(sIS_HectareasCobradas).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(sIS_HectareasCobradas)); }
public ActionResult Create([Bind(Include = "Id,NumeroHectareas,Clave,Cuenta,Precio,AñoDePago")] SIS_HectareasCobradas sIS_HectareasCobradas) { if (ModelState.IsValid) { db.SIS_HectareasCobradas.Add(sIS_HectareasCobradas); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(sIS_HectareasCobradas)); }
// GET: SIS_HectareasCobradas/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } SIS_HectareasCobradas sIS_HectareasCobradas = db.SIS_HectareasCobradas.Find(id); if (sIS_HectareasCobradas == null) { return(HttpNotFound()); } return(View(sIS_HectareasCobradas)); }