public ActionResult DeleteConfirmed(int id) { PAQUETE pAQUETE = db.PAQUETES.Find(id); db.PAQUETES.Remove(pAQUETE); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "id,nombre,descripcion,estado")] PAQUETE pAQUETE) { if (ModelState.IsValid) { db.Entry(pAQUETE).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pAQUETE)); }
public ActionResult Create([Bind(Include = "id,nombre,descripcion,estado")] PAQUETE pAQUETE) { if (ModelState.IsValid) { db.PAQUETES.Add(pAQUETE); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pAQUETE)); }
// GET: Paquetes/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } PAQUETE pAQUETE = db.PAQUETES.Find(id); if (pAQUETE == null) { return(HttpNotFound()); } return(View(pAQUETE)); }
public void update(PAQUETE obj) { throw new NotImplementedException(); }