diff --git a/StandManager/Components/Pages/Component_Registrazione.razor b/StandManager/Components/Pages/Component_Registrazione.razor index 4177955..62a9e63 100644 --- a/StandManager/Components/Pages/Component_Registrazione.razor +++ b/StandManager/Components/Pages/Component_Registrazione.razor @@ -38,7 +38,7 @@
- diff --git a/StandManager/Model/IscrizioneEventoViewModel.cs b/StandManager/Model/IscrizioneEventoViewModel.cs index 9dfe04e..0d3676f 100644 --- a/StandManager/Model/IscrizioneEventoViewModel.cs +++ b/StandManager/Model/IscrizioneEventoViewModel.cs @@ -26,7 +26,7 @@ public class IscrizioneEventoViewModel [Required(ErrorMessage = "Il numero di telefono è obbigatorio")] public string NumeroTelefono { get; set; } [Required(ErrorMessage = "La provincia è obbigatoria")] - public Guid Provincia { get; set; } + public Guid? Provincia { get; set; } [Required(ErrorMessage = "Il comune è obbigatorio")] public Guid? Comune { get; set; } [Required(ErrorMessage = "Il CAP è obbigatorio")] @@ -60,7 +60,7 @@ public class IscrizioneEventoViewModel model.PartitaIva = PartitaIva; model.GiornoPresenza = GiornoPresenza.Value; model.ComuneId = Comune.GetValueOrDefault(); - model.ProvinciaId = Provincia; + model.ProvinciaId = Provincia.GetValueOrDefault(); return model; }