DeleteBranch

Yes, Delete

Warning

This action cannot be undone. The treatment and its associated image will be permanently deleted.

BranchToDelete

BranchName

Cairo – Nasr City

Location

31 Ahmed Qassem Gouda Street (Off Abbas El Akkad Street - next to Ghabbour Auto)

Phone

01061677909

OperatingHours

09:00 AM - 09:00 PM

Status

Active

DeleteConfirmationQuestion

[SupplyParameterFromQuery] private int Id { get; set; } protected override async Task OnInitializedAsync() { using var context = DbFactory.CreateDbContext(); pinkbranch = await context.PinkBranches.FirstOrDefaultAsync(m => m.Id == Id); if (pinkbranch is null) { NavigationManager.NavigateTo("notfound"); } } private async Task DeletePinkBranch() { using var context = DbFactory.CreateDbContext(); context.PinkBranches.Remove(pinkbranch!); await context.SaveChangesAsync(); NavigationManager.NavigateTo("/pinkbranches"); } }