Clean the System.Web.Mvc and System.Web.Http seoaration
There are several things that have the same name but different types, as they live in different namespaces. Usually System.Web.Mvc and System.Web.Http.
This is going to be really confusing and it will add a lot of not pleasant surprises. I show some of the surprises and confusion in this post: http://pedroreys.com/2012/03/14/asp-net-web-api-routing-needs-a-hug/
ASP.NET Web API uses the new HTTP programming model introduced by the HttpClient in .NET 4.5, while the MVC abstractions use the HTTP abstractions from ASP.NET (HttpContext, etc). As such we need parallel but separate concepts in ASP.NET Web API.
1 comment
-
Dan Konigsbach
commented
Unfortunately, the msdn.microsoft.com documentation does little to make the distinction clear.
Here's what you'd like to see (but won't) in the "Remarks" for each of the classes that appear in both namespaces:
System.Web.Mvc is used by ASP.NET MVC, which is used for building Web sites.
System.Web.Http is used by ASP.NET MVC Web API, which is used for building Web services.