Fix
This commit is contained in:
@ -224,7 +224,7 @@
|
|||||||
ClienteId = invito.ClienteId,
|
ClienteId = invito.ClienteId,
|
||||||
DestinazioneId = iscrizione.DestinazioneId,
|
DestinazioneId = iscrizione.DestinazioneId,
|
||||||
TipologiaClienteId = iscrizione.TipologiaClienteId,
|
TipologiaClienteId = iscrizione.TipologiaClienteId,
|
||||||
IdUtenteCreazione = userId != Guid.Empty ? userId : null
|
//IdUtenteCreazione = userId != Guid.Empty ? userId : null
|
||||||
};
|
};
|
||||||
|
|
||||||
model = iscrizione.Map(model);
|
model = iscrizione.Map(model);
|
||||||
|
|||||||
@ -129,9 +129,9 @@
|
|||||||
var ruoliCapoarea = await _managerService.RuoloService.RicercaQueryable(
|
var ruoliCapoarea = await _managerService.RuoloService.RicercaQueryable(
|
||||||
x => x.Permessi.Any(y => y.Feature.Type == FeatureType.AdminGlobal || y.Feature.Type == FeatureType.Capoarea),
|
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));
|
includi: x => x.Include(y => y.Permessi).ThenInclude(z => z.Feature));
|
||||||
capoareaList = (await _managerService.UtenteService.RicercaQueryable(
|
capoareaList = (await _managerService.UtenteService.RicercaQueryable(x => x.IsCapoarea,
|
||||||
u => ruoliCapoarea.Any(r => r.Id == u.RuoloId)
|
ordinamento:y => y.OrderBy(z => z.Nome).ThenBy(w => w.Cognome)))
|
||||||
)).Select(x => (UtenteViewModel)x).ToList();
|
.Select(x => (UtenteViewModel)x).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user