Beispiel #1
0
        public WeekendCategoryController()
        {
            var kernel = GlobalConfiguration.Configuration.DependencyResolver as NinjectResolver;

            if (kernel != null)
            {
                _weekendCategoryService = kernel.GetService(typeof(WeekendCategoryService)) as WeekendCategoryService;
            }
        }
Beispiel #2
0
        public EmployeeLeaveInformationController()
        {
            var kernel = GlobalConfiguration.Configuration.DependencyResolver as NinjectResolver;

            if (kernel != null)
            {
                _employeeLeaveInformationService = kernel.GetService(typeof(EmployeeLeaveInformationService)) as EmployeeLeaveInformationService;
                _annualHolidayCategoryService    = kernel.GetService(typeof(IAnnualHolidayCategoryService)) as AnnualHolidayCategoryService;
                _weekendCategoryService          = kernel.GetService(typeof(IWeekendCategoryService)) as WeekendCategoryService;
                _leavePolicyService = kernel.GetService(typeof(ILeavePolicyService)) as LeavePolicyService;
                _employeeService    = kernel.GetService(typeof(IEmployeeService)) as EmployeeService;
            }
        }