Exemple #1
0
        public ActionResult <string> Atualizar([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.Atualizar(filtro, out status);

            if (p == false)
            {
                tabela.Status = status;
            }
            else
            {
                tabela.Status = "OK";
            }
            return(tabela.GetJSON());
        }