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
Post a Comment