Exemple #1
0
        public ActionResult Remover(int id)
        {
            var   dao   = new CargoDAO();
            Cargo cargo = dao.BuscaPorIdWhere(id);

            dao.Remover(cargo);
            return(RedirectToAction("Index"));
        }
 public IActionResult Remover(int id)
 {
     _cargoDAO.Remover(id);
     return(RedirectToAction("Index"));
 }