You can also apply the [Route] attribute on the controller level, capturing the action as a parameter. That route would then be applied on all actions in the controller, unless a specific [Route] has been defined on a specific action, overriding the default set on the controller.
[RoutePrefix(“promotions”)]
[Route(“{action=index}”)]
public class ReviewsController : Controller
{
// eg.: /promotions
public ActionResult Index() { … }
// eg.: /promotions/archive
public ActionResult Archive() { … }
// eg.: /promotions/new
public ActionResult New() { … }
// eg.: /promotions/edit/5
[Route(“edit/{promoId:int}”)]
public ActionResult Edit(int promoId) { … }
}