Exemplo n.º 1
0
        public ActionResult Delete(int id)
        {
            Pessoa model = new Pessoa();

            ps.Deletar(id);
            return(RedirectToAction("List"));
        }
        public ActionResult Delete(int id)
        {
            PessoaService srv = new PessoaService();

            srv.Deletar(id);

            return(View("List", srv.Listar()));
        }
Exemplo n.º 3
0
        private void DgvPessoas_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int index = e.ColumnIndex;

            if (index == 3)
            {
                int indexLinha = e.RowIndex;
                int id         = Convert.ToInt32(dgvPessoas.Rows[indexLinha].Cells[0].Value);
                ps.Deletar(id);
                CarregarPessoas();
            }
        }
Exemplo n.º 4
0
 public ActionResult DeletarPessoa(string uuid)
 {
     return(Ok(PessoaService.Deletar(uuid)));
 }
Exemplo n.º 5
0
 public ActionResult Delete(int id)
 {
     PessoaService.Deletar(id);
     return(View("List", PessoaService.Listar()));
 }
Exemplo n.º 6
0
 public ActionResult DeletarPessoa(int id)
 {
     return(Ok(PessoaService.Deletar(id)));
 }