public WeekendController() { var kernel = GlobalConfiguration.Configuration.DependencyResolver as NinjectResolver; if (kernel != null) { _weekendService = kernel.GetService(typeof(WeekendService)) as WeekendService; _weekendCategoryService = kernel.GetService(typeof(WeekendCategoryService)) as WeekendCategoryService; } }
public ProductionCalendarService(IWeekendService weekendService, IUnitOfWorkFactory unitOfWorkFactory) { _weekendService = weekendService; _unitOfWorkFactory = unitOfWorkFactory; }