Original: The town of Gilgit is the capital of Gilgit District.
Simplified: The capital of the Gilgit District is Gilgit town.