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)
OperatingHours
09:00 AM - 09:00 PM
[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");
}
}