@page "/User/{CodAnag}"
@attribute [Authorize]
@using salesbook.Shared.Components.Layout
@using salesbook.Shared.Core.Entity
@using salesbook.Shared.Core.Interface
@using salesbook.Shared.Components.Layout.Spinner
@inject IManageDataService ManageData
@if (IsLoading)
{
}
else
{
@UtilityString.ExtractInitials(Anag.RagSoc)
@Anag.RagSoc
@if (UserSession.User.KeyGroup is not null)
{
@Anag.Indirizzo
@($"{Anag.Cap} - {Anag.Citta} ({Anag.Prov})")
}
Telefono
@if (string.IsNullOrEmpty(Anag.Telefono))
{
@("Nessuna mail configurata")
}
else
{
@Anag.Telefono
}
E-mail
@if (string.IsNullOrEmpty(Anag.EMail))
{
@("Nessuna mail configurata")
}
else
{
@Anag.EMail
}
@if (PersRif is { Count: > 0 })
{
@{
var index = PersRif.IndexOf(person);
var isLast = index == PersRif.Count - 1;
}
@if (!isLast)
{
}
}
Aggiungi contatto
}
@code {
[Parameter] public string CodAnag { get; set; }
private AnagClie Anag { get; set; } = new();
private List