3
Answers

asp.net Mvc API

I have two tables , 
1. News
2. Shop
 
And I have creating three API's
1. GetNews
2. PostNews
3. DeleteNews
 
Now, I want to insert the data by using PostNews API. But there is a problem in News Table that Shop Table contain PK(id) which is FK in News Table, so how can i insert the data in News Table, require code snippet for API....
Answers (3)