Пример #1
0
        public ActionResult GetAsistentes()
        {
            AsistenteRepository AsisRepo = new AsistenteRepository();

            ModelState.Clear();

            return(View(AsisRepo.ListarAsistentes()));
        }
Пример #2
0
        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));
        }