Restoring the boot manager

After doing some experiments, I accidentally deleted the EFI and Boot partitions from the system drive.

How can I restore the boot manager?