Ok looks like I solved one issue where I'm able to send all the information from my Model through the API but the issue now is that the Model references another Model class which has the descriptions of that item. I'm not sure how to pull this within a
Api Controller.
So instead of say 1 showing up, I need to to pull the name from the other model class and says "football."
MasterV23
Member
113 Points
318 Posts
Re: Setting up web api to pull data from a database using EF.
Apr 13, 2012 06:45 PM|LINK
Ok looks like I solved one issue where I'm able to send all the information from my Model through the API but the issue now is that the Model references another Model class which has the descriptions of that item. I'm not sure how to pull this within a Api Controller.
So instead of say 1 showing up, I need to to pull the name from the other model class and says "football."