Skip to content

Instantly share code, notes, and snippets.

@jpolvora
Created January 5, 2013 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpolvora/4459583 to your computer and use it in GitHub Desktop.
Save jpolvora/4459583 to your computer and use it in GitHub Desktop.
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