protected override async Task OnInitializedAsync() { PaymentTerms = (await PaymentTermDataService.GetAll()).ToArray(); Clients = (await ClientDataService.GetAll()).ToArray(); ProductsData = (await ProductDataService.GetAll()).ToArray(); Lines = new List <InvoiceLine> { InvoiceLinesRef.GetEmptyLine() }; NumberSequences = (await NumberSequenceDataService.GetAll()).ToArray(); await IsEditingInvoice(); }