Пример #1
0
 public ActionResult Adiciona(Cargo cargo)
 {
     if (ModelState.IsValid)
     {
         CargoDAO dao = new CargoDAO();
         dao.Adiciona(cargo);
         return(View("Adiciona"));
     }
     return(View("Form"));
 }