Project now in use WebAPI + MVC but always feel very uncomfortable about jump is originally the MVC jump simply Redirect (new {controller=; Action=}) now have the following questions: 1. How to each other between the two apis jump from aAPI like I want to jump into the bapis (only request request yao) 2. From the API page jump to the MVC for example I API logic over now need to redirect page open the MVC (now my solution is to spell the full url address) (3) from the MVC jump to webapi (now is to use the front desk to jump to the MVC) Everyone a great god help small grateful
CodePudding user response:
1, the API can't jump... 2, the API also cannot open the page 3, the MVC can call API, can't jump
API is not involved in the concept of page, it is only responsible for providing data, how to display and to jump between pages is UI If you are not separated before and after the end, Suggestions or MVC mode development
CodePudding user response:
You don't use don't use API, WebAPI equivalent to automated teller machines (atms), can only save money, go to the counter to handle the business (MVC)