Exemplo n.º 1
0
 // GET: Cargo/Delete/5
 public IActionResult Delete(int id)
 {
     _cargoDAO.Deletar(_cargoDAO.BuscarPorId(id));
     return(RedirectToAction(nameof(Index)));
 }