Ejemplo n.º 1
0
        public async Task <IActionResult> Index(string button, [Bind("Nome ,Cnpj,Cpf, Data, CurrentPage")] FornecedorListModel model)
        {
            model = await _servico.BuscarFornecedores(model);

            if (button == "Limpar")
            {
                ModelState.Clear();
            }

            return(View(model));
        }