コード例 #1
0
 public ActionResult CadastrarVaga([Bind(Include = "VagaID, Disponivel")] Vaga vaga)
 {
     if (ModelState.IsValid)
     {
         VagaDAO.CadastrarVaga(vaga);
         return(RedirectToAction("MostrarVagas", "Historico"));
     }
     else
     {
         return(View(vaga));
     }
 }