Warning
This action cannot be undone. The treatment and its associated image will be permanently deleted.
BranchToDelete
BranchName
Kafr El Sheikh
Location
State Cases Authority Square In front of Emad El Din New Markets – In front of El Ghannam Pharmacy
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");
}
}