protected async void btnDelete_Click() { await CategoryRepositoryAsync.DeleteAsync(Category.CategoryId); CategoryDeleteDialog.Close(); Category = new Category(); await DisplayData(); StateHasChanged(); }
protected void DeleteBy(Category customer) { Category = customer; CategoryDeleteDialog.Show(); }