Auto Generate alphanumeric Unique Id with C# with sql server : Need to create employee record based on branch

I have a scenario, where if branch combo box value is selected xyz branch then

ID starts with XYZ-0001

if combo box value is selected abc branch then

ID starts with ABC-0001 and then so on 

Please suggest any idea on how to create this format.