Dr.Ajay Kashyap

Dr.Ajay Kashyap

  • NA
  • 521
  • 285k

asp.net Mvc API

Apr 29 2016 5:11 AM
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)