I've got a website built with MVC5 and EF6. It's split into 2 projects:
// Website project controller method
// Call WebAPI here:
// Is it possible to pass model and uploadedImages to the API
// and have it do the saving, querying, assembling a new
// profileDisplayModel and return it
// So I can just then do this:
You can do it by using any REST client library like RestSharp, or using
HttpClient together with Json.Net to make async calls to the API from your controllers.
However, you are creating an extra network call between parts of one application. It will affect the performance of you application.
You can instead separate the logic of your application in a separate library and call it from both API and MVC controllers. This will be somewhat closer to proper encapsulation and separation of concerns.
It will also allow you to write tests for the logic alone, without any HTTP infrastructure.