From ef3940f44e371165840396b2c3b4c53378aeabd7 Mon Sep 17 00:00:00 2001 From: "yvan.calatayud" Date: Wed, 20 Dec 2023 18:10:17 +0100 Subject: [PATCH] fix : delete --- Blazor/Blazor/Modals/DeleteConfirmation.razor | 2 +- Blazor/Blazor/Modals/DeleteConfirmation.razor.cs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Blazor/Blazor/Modals/DeleteConfirmation.razor b/Blazor/Blazor/Modals/DeleteConfirmation.razor index 959fbda..3eab751 100644 --- a/Blazor/Blazor/Modals/DeleteConfirmation.razor +++ b/Blazor/Blazor/Modals/DeleteConfirmation.razor @@ -3,7 +3,7 @@

- Are you sure you want to delete @chapter.Name ? + Are you sure you want to delete ?

diff --git a/Blazor/Blazor/Modals/DeleteConfirmation.razor.cs b/Blazor/Blazor/Modals/DeleteConfirmation.razor.cs index bf38444..0e79b81 100644 --- a/Blazor/Blazor/Modals/DeleteConfirmation.razor.cs +++ b/Blazor/Blazor/Modals/DeleteConfirmation.razor.cs @@ -17,13 +17,13 @@ namespace Blazor.Modals [Parameter] public int Id { get; set; } - private Chapter chapter = new Chapter(); + //private Chapter chapter = new Chapter(); - protected override async Task OnInitializedAsync() - { - // Get the chapter - chapter = await DataService.GetById(Id); - } + //protected override async Task OnInitializedAsync() + //{ + // // Get the chapter + // chapter = await DataService.GetById(Id); + //} void ConfirmDelete() {