- FIX Home (codice Guid non valido)
This commit is contained in:
@ -120,16 +120,21 @@
|
|||||||
|
|
||||||
invito = dbInvito;
|
invito = dbInvito;
|
||||||
|
|
||||||
var destinazioniIds = invito.IscrizioniEvento?.Select(x => x.DestinazioneId).ToList() ?? new List<Guid?>();
|
if (invito == null)
|
||||||
destinazioniList = (await _managerService.DestinazioneService.RicercaQueryable(filtro: x => x.ClienteId == invito.ClienteId && !destinazioniIds.Any(y => y == x.Id))).Select(x => (DestinazioneViewModel)x).ToList();
|
invalidCode = "Il codice inserito non risulta corretto";
|
||||||
StateHasChanged();
|
else
|
||||||
|
{
|
||||||
|
var destinazioniIds = invito?.IscrizioniEvento?.Select(x => x.DestinazioneId).ToList() ?? new List<Guid?>();
|
||||||
|
destinazioniList = (await _managerService.DestinazioneService.RicercaQueryable(filtro: x => x.ClienteId == invito.ClienteId && !destinazioniIds.Any(y => y == x.Id))).Select(x => (DestinazioneViewModel)x).ToList();
|
||||||
|
StateHasChanged();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||||
{
|
{
|
||||||
if (firstRender)
|
if (firstRender)
|
||||||
await BodyClass.SetBodyClass("body-marketing body-gradient");
|
await BodyClass.SetBodyClass("body-marketing body-gradient");
|
||||||
if (invito.Id != Guid.Empty && registrazione != null)
|
if (invito?.Id != Guid.Empty && registrazione != null)
|
||||||
await registrazione.SetDatiCliente();
|
await registrazione.SetDatiCliente();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user