From 095fd682daf722d2d25f27f7b70ac6f41cf02430 Mon Sep 17 00:00:00 2001 From: Marco Audiffredi Date: Wed, 9 Oct 2024 12:53:28 +0200 Subject: [PATCH] marco --- Controllers/AddDestinazioneController.cs | 4 +++- Views/AddDestinazione/AddDestinazione.cshtml | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Controllers/AddDestinazioneController.cs b/Controllers/AddDestinazioneController.cs index 466486c..872561b 100644 --- a/Controllers/AddDestinazioneController.cs +++ b/Controllers/AddDestinazioneController.cs @@ -42,7 +42,9 @@ namespace SoftwayWeb.Controllers ViewBag.serialeGiro = serialeGiro; model.Pisergir = serialeGiro; ViewBag.Commit = getCommittenti(); - ViewBag.CodAutista = codAutista; + ViewBag.Mezzi=getMezzi(); + ViewBag.CodAutista=getAutisti(); + //ViewBag.CodAutista = codAutista; model.Piautist = codAutista; ViewBag.Autista = nomeAutista; ViewBag.CodMezzo = codMezzo; diff --git a/Views/AddDestinazione/AddDestinazione.cshtml b/Views/AddDestinazione/AddDestinazione.cshtml index 22d9e6c..554a083 100644 --- a/Views/AddDestinazione/AddDestinazione.cshtml +++ b/Views/AddDestinazione/AddDestinazione.cshtml @@ -44,7 +44,7 @@
- @Html.DropDownList("autista",ViewBag.CodAutista, null, new { @class = "agy-form-field require" }) + @Html.DropDownList("Piautist",ViewBag.CodAutista, null, new { @class = "agy-form-field require" })
@@ -52,7 +52,7 @@
- @Html.DropDownList("mezzo",ViewBag.Mezzi, null, new { @class = "agy-form-field require" }) + @Html.DropDownList("Pitarga",ViewBag.Mezzi, null, new { @class = "agy-form-field require" })