// GET: Admin/EliminarDirector/5 public ActionResult EliminarDirector(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } var director = Director_N.GetDirector(id.Value); return(View(director)); }
public ActionResult CrearDirector(Director director) { try { Director_N.AgregarDirector(director); return(RedirectToAction("VerDirector")); } catch { return(View()); } }
public ActionResult EditarDirector(Director licencia) { try { Director_N.EditarDirector(licencia); return(RedirectToAction("VerDirector")); } catch { return(View()); } }
public ActionResult EliminarDirector(int id) { try { Director_N.EliminarDirector(id); return(RedirectToAction("VerDirector")); } catch (Exception ex) { ModelState.AddModelError("", ex.Message); return(View()); } }
public ActionResult EditarDirector(int id) { var DirectorEditar = Director_N.GetDirector(id); return(View(DirectorEditar)); }
//Director public ActionResult VerDirector() { var director = Director_N.ListarDirector(); return(View(director)); }