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