Single Page MVC application using the repository pattern