Construct url in view for Web Api with attribute routing
问题 How can I get the url from web api in my view? Example (from the msdn-blog): [RoutePrefix("reviews")] public class ReviewsController : ApiController { // eg.: /reviews [Route] public IHttpActionResult Get() { ... } // eg.: /reviews/5 [Route("{reviewId}")] public IHttpActionResult Show(int reviewId) { ... } // eg.: /reviews/5/edit [Route("{reviewId}/edit")] public IHttpActionResult Edit(int reviewId) { ... } } Now I want to construct "/reviews/edit" in my view, how can I do this? I've tried