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() {