public ActionResult <string> Apagar([FromBody] dynamic pp) { Registro filtro = new Registro(pp); Tabela tabela = new Tabela(filtro); string status; tabela = Utilz.Logar(tabela); if (tabela.Status != "OK") { return(tabela.GetJSON()); } var db = new Banco(); var p = db.Apagar(filtro, out status); if (p == false) { tabela.Status = status; } else { tabela.Status = "OK"; } return(tabela.GetJSON()); }