jeudi 7 janvier 2016

Mvc Web api reading in visual studio [duplicate]

This question already has an answer here:

So basically I have created a Web api service in visual studio that reads from my db. What I want to do next is use this api and another service and combine them in a single Mvc application. So it grabs data from my api and another online service and display in a view.

The problem I have is that I am struggling to fnd anywhere that tells me how to grab specific data from my Web api and use it.

Can someone point me to a tutorial or some example code that would enable me to connect to my api and grab the data. Im pretty much new to the whole Mvc thing and im trying to write this mainly in c#

So basically im just trying to consume my api service but I have searched high and low and can only find tutorials that tell me how to create Web api in mvc.

Thanks for the help.




Aucun commentaire:

Enregistrer un commentaire