The text of this article is not in this database — only its details are. Read it on the old site: Integrating ASP.Net Web API With MVC Basic Infrastructure
32 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

sunil patelPosted Jul 6, 2018, 11:48 PM
Why don't you have use dependency, repository pattern and entity framework
balaji pdvPosted May 8, 2018, 11:46 PM
HI Nimit Thank you very much good artical, my request can you explain in dotnet2015 .How to integrate with typescript and API Project as separate project , How to ingrate both
Aanandhi JayaramPosted Dec 20, 2017, 4:19 AM
Where to add connection string? In web api config file or in mvc web.config file? Also,I am getting an error at here: List<CollegeDetails> cd = response.Content.ReadAsAsync<List<CollegeDetails>>().Result; Severity Code Description Project File Line Suppression State Error CS1061 'HttpContent' does not contain a definition for 'ReadAsAsync' and no extension method 'ReadAsAsync' accepting a first argument of type 'HttpContent' could be found (are you missing a using directive or an assembly reference?) CollegeTracker c:\users\administrator\source\repos\CollegeTracker\CollegeTracker\Controllers\CollegeDetailsController.cs 30 Active
Sreekanth MohanPosted Dec 4, 2017, 11:51 AM
Thank you for the article. One question.Instead of making webapi call from MVC controller, can we make Ajax call directly to the webapi ?If yes, how to handle the security?
Shabber ShahPosted Feb 14, 2017, 3:10 AM
Excellent Article - I was looking for this from many many days. Thank you very much :)
libbi tejaPosted Nov 3, 2015, 1:35 AM
How can we retreive table details by adding an entity framework reference to the web api
Sanjay GunjalPosted Sep 10, 2015, 7:47 AM
Hi Nimit , you have explain pretty well. But i have a question , is calling apicontroller from MVCcontroller cause double server roundtrip ?
Jaipal ReddyPosted Jun 22, 2015, 2:08 AM
Good Article Nimit.
Niko BarićPosted Jun 4, 2015, 5:28 AM
This is exactly I was looking for :) Thank you very much for the article but can you please finish with other operations for create, read, update and delete?
balu kukunuriPosted Feb 1, 2015, 11:29 PM
looking for some ideas on how to write unit test case (moq) for controller action method:[HttpGet, ActionName("getcollegelist")] public ActionResult GetCollegeList()
K P Singh ChundawatPosted Jan 23, 2015, 10:15 AM
Great ...Article of the day At Asp.net Community ..congrats
Rahul Kumar SaxenaPosted Jan 23, 2015, 4:04 AM
Article of tha day .... Congrts. NIMIT bro....
Manish Kumar ChoudharyPosted Dec 14, 2014, 4:47 AM
nice one...
Gaurav Kumar AroraPosted Dec 12, 2014, 7:50 AM
Good one Nimit Joshi. Can you provide some more details where we can use other Rest Client to consume Very complex objects. Eg. my object contains n-level child objects ?
jalloe ePosted Dec 11, 2014, 3:48 AM
can i download source-code ?
Pradip PandeyPosted Dec 2, 2014, 5:47 AM
Simple and clean.
Dinesh BeniwalPosted Dec 2, 2014, 2:03 AM
Great work again.
Ish BandhuPosted Dec 1, 2014, 11:13 PM
Good Article Nimit!