In my Web API project which is based on the ASP.NET MVC, I want to use the HttpPost
attribute. When I've added that onto the action, The IntelliSense suggests me these two namespaces:
Which one should be used and why?
Prior to ASP.NET Core, MVC and WebAPI were mainly separate libraries.
The .Mvc namespace applies to MVC controllers, the .Http namespace to Web API controllers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With