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())); }
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(); } }
public ActionResult DeletarPessoa(string uuid) { return(Ok(PessoaService.Deletar(uuid))); }
public ActionResult Delete(int id) { PessoaService.Deletar(id); return(View("List", PessoaService.Listar())); }
public ActionResult DeletarPessoa(int id) { return(Ok(PessoaService.Deletar(id))); }