Reading through this blog post on attribute routing in ASP.NET MVC 5 and this one on attribute routing in Web Api 2, it looks like there are two sets of routing attributes, one in the System.Web.Mvc
namespace and the other in System.Web.Http
.
- Is that right and does anyone have any idea (links) as to why it was designed this way?
- Should one be used over the other or are they supposed to live side by side?