public AnnualHolidayCategoryController() { var kernel = GlobalConfiguration.Configuration.DependencyResolver as NinjectResolver; if (kernel != null) { _annualholidayCategoryService = kernel.GetService(typeof(AnnualHolidayCategoryService)) as AnnualHolidayCategoryService; } }
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; } }