Support unity DI in Mvc controllers

Issue #253 closed
Brian Lewis repo owner created an issue

Currently, the Unity adaptor for Web Api is installed, which allows dependency injection into Web Api controllers. Specifically, this is used to inject an instance of the data factory - and hence the Entity Framework DBContext - into each Web Api controller.

For more complex uses of the Mvc routes ( which returns Html templates) we need access to data through Mvc as well. So - we need the Unity adaptor for Mvc.

This will be used to access metadata describing the layout of a survey form. This form will be instantiated by Mvc server-side.

Comments (1)

  1. Log in to comment