// GET: Peliculas/Edit/5 public ActionResult Edit(int? id) { if (id == null) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } Pelicula pelicula = PeliculaBLL.Get(id); if (pelicula == null) { return HttpNotFound(); } return View(pelicula); }
// GET: Peliculas/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Pelicula pelicula = PeliculaBLL.Get(id); if (pelicula == null) { return(HttpNotFound()); } return(View(pelicula)); }