Ejemplo n.º 1
0
 public IActionResult Filtro(GrupoMembroModel filtro)
 {
     try
     {
         String grupoNome = filtro.GrupoNome.ToString();
         ViewBag.Lista = new GrupoMembroModel().RetornarListagemNome(grupoNome);
         return(View());
     }
     catch (Exception)
     {
         return(View());
     }
 }
Ejemplo n.º 2
0
 public IActionResult Registrar(GrupoMembroModel grupo)
 {
     if (ModelState.IsValid)
     {
         grupo.Inserir();
         CarregarDados();
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View());
     }
 }