public ActionResult DeleteConfirmed(int id) { detalledevolucion detalledevolucion = db.detalledevolucion.Find(id); db.detalledevolucion.Remove(detalledevolucion); db.SaveChanges(); return(RedirectToAction("Index")); }
// GET: detalledevolucions/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } detalledevolucion detalledevolucion = db.detalledevolucion.Find(id); if (detalledevolucion == null) { return(HttpNotFound()); } return(View(detalledevolucion)); }
// GET: detalledevolucions/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } detalledevolucion detalledevolucion = db.detalledevolucion.Find(id); if (detalledevolucion == null) { return(HttpNotFound()); } ViewData["IdProductoSeleccionado"] = String.Empty; ViewData["IdProveedorSeleccionado"] = String.Empty; ViewBag.idProveedor = db.proveedor.ToList(); ViewBag.idProducto = db.producto.ToList(); return(View(new Devolucion_Detalle() { dtDevolucion = detalledevolucion, devolucion = detalledevolucion.devolucion })); }