I'm working on an application that will have both web and mobile interfaces. That's why I want to use Web API. I don't have any problem with the Web API part, but I don't know what to do with the MVC application.
As far as I understand, my data access layer and Entity Framework will be in Web API, but I still have to create my Model classes in MVC for things like data formatting and..., data validation will take place in Web API, and I'll use Ajax calls to Web API from my Views in MVC to access data. Now, the question is, what's the role of Controller in MVC then?
Can someone tell me what design pattern should be used to develop an asp.net MVC application that consumes data from an asp.net Web API application?