/// <summary> /// Load your modules or register your services here! /// </summary> /// <param name="kernel">The kernel.</param> private static void RegisterServices(IKernel kernel) { var dataContext = new NRDataContext(); var usersService = new UserService(dataContext); kernel.Bind<IUserService>().ToConstant(usersService); }
public UserService(NRDataContext dataContext) { _dataContext = dataContext; }