From 0da0d7c829c5167ac47cbf43693f1069ad48c729 Mon Sep 17 00:00:00 2001 From: Leandro Hernan Rojas Date: Thu, 10 Apr 2025 00:08:01 -0300 Subject: [PATCH] CustomerForm A1 --- phronCare.UIBlazor/Pages/Sales/CustomerForm.razor | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/phronCare.UIBlazor/Pages/Sales/CustomerForm.razor b/phronCare.UIBlazor/Pages/Sales/CustomerForm.razor index c83c207..5c55151 100644 --- a/phronCare.UIBlazor/Pages/Sales/CustomerForm.razor +++ b/phronCare.UIBlazor/Pages/Sales/CustomerForm.razor @@ -51,13 +51,13 @@ protected override async Task OnInitializedAsync() { - // await LoadAccountTypes(); + await LoadAccountTypes(); - // if (CustomerId.HasValue) - // { - // // Cargar datos del cliente existente desde la API - // customer = await _httpClient.GetFromJsonAsync($"/api/Customer/GetById/{CustomerId.Value}") ?? new(); - // } + if (CustomerId.HasValue) + { + // Cargar datos del cliente existente desde la API + customer = await _httpClient.GetFromJsonAsync($"/api/Customer/GetById/{CustomerId.Value}") ?? new(); + } } private async Task LoadAccountTypes()