I\'m trying to extract the parameters of my URL, something like this.
/Administration/Customer/Edit/1
/Adm
In order to get the values of your parameters, you can use RouteData.
RouteData
More context would be nice. Why do you need to "extract" them in the first place? You should have an Action like:
public ActionResult Edit(int id, bool allowed) {}