MVC Web Api
Can we call MVC action method from MVC Web Api 2.0?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vincent Maverick DuranoPosted May 16, 2015, 4:11 AM
That's sounds not the right thing to do. If you need to simply reuse code, it should be abstracted into a class library (DLL) and referenced from the Web API and MVC projects.
If you need to call Web API service from C# code (MVC controllers or elsewhere), HttpClient or WebClient can be used to call the services over HTTP.