예제 #1
0
 public ActionResult ExcluirVeiculoUI()
 {
     if (ValidarAdmin.UsuarioValido())
     {
         VeiculoDAL             veiculoDAL       = new VeiculoDAL();
         VeiculoControllerModel veiculoViewModel = VeiculoConvertToModel(veiculoDAL.ListarVeiculoLocador());
         return(View(veiculoViewModel));
     }
     else
     {
         return(RedirectToAction("Login", "AreaRestrita"));
     }
 }