コード例 #1
0
        public AnnualHolidayCategoryController()
        {
            var kernel = GlobalConfiguration.Configuration.DependencyResolver as NinjectResolver;

            if (kernel != null)
            {
                _annualholidayCategoryService = kernel.GetService(typeof(AnnualHolidayCategoryService)) as AnnualHolidayCategoryService;
            }
        }
コード例 #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;
            }
        }