public ActionResult Delete(int id, Cargo servico) { try { var cargoDAO = new CargoDAO(); cargoDAO.DeleteCargo(id); return(RedirectToAction("Index")); } catch { return(View()); } }