Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public ActionResult Pesquisar()
{
// simulando consulta
var resultado = new List<string>() { "texto1", "texto2" };
// troque por este para simular retorno de dados
// var resultado = new List<string>();
return PartialView("ResultadosDaPesquisa", resultado.NotEmpty(defaultValue: string.Empty));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment