March 2018
Intermediate to advanced
192 pages
4h 4m
English
We can also use our IoC container to hold our ViewModels. It is a slightly different model than the one used to register the concrete implementations of our service interfaces—instead of mapping them to an interface, we will simply register them to themselves.
Since our ViewModels are in our core library, we will create another Ninject Module in the core library that will register them, as shown in the following steps:
public class TripLogCoreModule : NinjectModule { // ...