diff --git a/StandManager/Components/Pages/Component_Registrazione.razor b/StandManager/Components/Pages/Component_Registrazione.razor index 798ca35..09dc0dd 100644 --- a/StandManager/Components/Pages/Component_Registrazione.razor +++ b/StandManager/Components/Pages/Component_Registrazione.razor @@ -224,7 +224,7 @@ ClienteId = invito.ClienteId, DestinazioneId = iscrizione.DestinazioneId, TipologiaClienteId = iscrizione.TipologiaClienteId, - IdUtenteCreazione = userId != Guid.Empty ? userId : null + //IdUtenteCreazione = userId != Guid.Empty ? userId : null }; model = iscrizione.Map(model); diff --git a/StandManager/Components/Pages/Management/Utenti_Edit.razor b/StandManager/Components/Pages/Management/Utenti_Edit.razor index ff52710..291dfdf 100644 --- a/StandManager/Components/Pages/Management/Utenti_Edit.razor +++ b/StandManager/Components/Pages/Management/Utenti_Edit.razor @@ -129,9 +129,9 @@ var ruoliCapoarea = await _managerService.RuoloService.RicercaQueryable( x => x.Permessi.Any(y => y.Feature.Type == FeatureType.AdminGlobal || y.Feature.Type == FeatureType.Capoarea), includi: x => x.Include(y => y.Permessi).ThenInclude(z => z.Feature)); - capoareaList = (await _managerService.UtenteService.RicercaQueryable( - u => ruoliCapoarea.Any(r => r.Id == u.RuoloId) - )).Select(x => (UtenteViewModel)x).ToList(); + capoareaList = (await _managerService.UtenteService.RicercaQueryable(x => x.IsCapoarea, + ordinamento:y => y.OrderBy(z => z.Nome).ThenBy(w => w.Cognome))) + .Select(x => (UtenteViewModel)x).ToList(); } ///