Exemplo n.º 1
0
 // GET: Participante
 public ActionResult Index(string msg = null)
 {
     ViewBag.Alert = msg;
     return(View(_participanteRepository.ObterTodos()));
 }
Exemplo n.º 2
0
 public IEnumerable <Participante> ObterTodos()
 {
     return(_participanteRository.ObterTodos());
 }
Exemplo n.º 3
0
 private SelectList ObterParticipantes(string id = null)
 {
     return(new SelectList(_participanteRepository.ObterTodos(), "ParticipanteId", "Nome", id));
 }