public ActionResult GetAsistentes() { AsistenteRepository AsisRepo = new AsistenteRepository(); ModelState.Clear(); return(View(AsisRepo.ListarAsistentes())); }
public ActionResult EditAsistente(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } AsistenteRepository AsisRepo = new AsistenteRepository(); Asistente result = AsisRepo.ListarAsistentes() .Find(Asis => Asis.Asistente_ID == id); if (result == null) { return(HttpNotFound()); } return(View(result)); }