// GET: plastico/Delete/5 public ActionResult Details(int id) { PlasticoBLL oBLL = new PlasticoBLL(); plastico tarjeta = oBLL.Retrieve(id); return(View(tarjeta)); }
// GET: Tarjeta public ActionResult Index() { PlasticoBLL oBLL = new PlasticoBLL(); List <plastico> tarjetas = oBLL.RetrieveAll(); return(View(tarjetas)); }
public ActionResult Delete(int id) { PlasticoBLL oBLL = new PlasticoBLL(); oBLL.Delete(id); return(RedirectToAction("Index")); }
public ActionResult Edit(plastico tarjeta) { ActionResult Result; try { if (ModelState.IsValid) { PlasticoBLL oBLL = new PlasticoBLL(); oBLL.Edit(tarjeta); Result = RedirectToAction("Index"); } else { Result = View(tarjeta); } return(Result); } catch (Exception e) { return(View(tarjeta)); } }