ASP.NET MVC 4 Web Application calls Web API -


in same solution, have mvc 4 web application project ("the site") , mvc 4 web api project ("the service").

in future, may want deploy service on separate server site.

therefore, site's model class call service's web methods.

is possible ? how can accomplish ?

unless i'm missing something, why don't create site's model separate project in solution. site reference it. model make calls web api on httpwebrequest or similar.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -