Example #1
0
 private void CarregarDropDownEvento(int?id)
 {
     if (id == null)
     {
         ViewBag.EventoList = new SelectList(_eventoApp.ListarPagosPorUsuario(User.Identity.GetUserId()), "EventoId", "Nome");
     }
     else
     {
         ViewBag.EventoList = new SelectList(_eventoApp.ListarPagosPorUsuario(User.Identity.GetUserId()), "EventoId", "Nome", id);
     }
 }