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

            return(View(cargo));
        }
Exemple #2
0
        public ActionResult Alterar(int id)
        {
            var   dao   = new CargoDAO();
            Cargo cargo = dao.BuscaPorId(id);

            ViewBag.Cargo = cargo;

            return(View(cargo));
        }