Пример #1
0
        public LeaveTypeController()
        {
            _departmentServices              = new DepartmentService();
            _designationServices             = new DesignationService();
            _moduleService                   = new ModuleService();
            _officeService                   = new OfficeServices();
            _bgService                       = new BusinessGroupService();
            _leaveTypeService                = new LeaveTypeService();
            _leaveRuleService                = new LeaveRuleService();
            _leaveRuleDetailService          = new LeaveRuleDetailService();
            _levelService                    = new LevelService();
            _darbandiService                 = new DarbandiService();
            _officeTypeService               = new OfficeTypeService();
            _rankService                     = new RankService();
            _rolesService                    = new RolesService();
            _roleAccessService               = new RolesAccessService();
            _leaveYearService                = new LeaveYearService();
            _sectionService                  = new SectionService();
            _shifService                     = new ShiftService();
            _shiftDayService                 = new ShiftDayService();
            _ethnicityService                = new EthnicityService();
            _jobTypeService                  = new JobTypeService();
            _educationLevelService           = new EducationLevelService();
            _rolesBusinessGroupAccessService = new RolesBusinessGroupAccessService();

            _fiscalService = new FiscalService();
        }
Пример #2
0
 public LeaveTypeController(ILeaveTypeService leaveTypeService,
                            IDataProtectionProvider dataProtectionProvider,
                            DataProtecionPurposeStrings dataProtecionPurposeStrings)
 {
     this.leaveTypeService = leaveTypeService;
     protector             = dataProtectionProvider.CreateProtector(dataProtecionPurposeStrings.EmployeeIdRouteValue);
 }
Пример #3
0
 public SpecialLeaveTypeService(IUnitOfWork unitOfWork = null, LeaveTypeService leavetypeService = null)
 {
     _unitOfWork       = unitOfWork ?? new UnitOfWork();
     _leavetypeService = leavetypeService ?? new LeaveTypeService();
     _employeeServices = new EmployeeService();
     _officeService    = new OfficeServices();
     _employeeservice  = new EmployeeService();
 }
Пример #4
0
        public EmployeeLeaveRequestController()
        {
            var kernel = GlobalConfiguration.Configuration.DependencyResolver as NinjectResolver;

            if (kernel != null)
            {
                _employeeLeaveRequestService     = kernel.GetService(typeof(EmployeeLeaveRequestService)) as EmployeeLeaveRequestService;
                _leaveTypeService                = kernel.GetService(typeof(ILeaveTypeService)) as LeaveTypeService;
                _leaveApprovalStatusService      = kernel.GetService(typeof(ILeaveApprovalStatusService)) as LeaveApprovalStatusService;
                _employeeService                 = kernel.GetService(typeof(IEmployeeService)) as EmployeeService;
                _employeeLeaveInformationService = kernel.GetService(typeof(IEmployeeLeaveInformationService)) as IEmployeeLeaveInformationService;
            }
        }
Пример #5
0
        public LeaveYearlyReportController()
        {
            _leaveServices    = new LeaveApplicationService();
            _moduleService    = new ModuleService();
            _employeeServices = new EmployeeService();
            _notifications    = new NotificationService();
            _officeServices   = new OfficeServices();

            _leaveRuleService       = new LeaveRuleService();
            _leaveRuleDetailService = new LeaveRuleDetailService();
            _leaveTypeService       = new LeaveTypeService();
            _leaveAssigned          = new LeaveAssignServices();
            _leaveEarnedService     = new LeaveEarnedService();
        }
Пример #6
0
 public LeaveTypeController(ILeaveTypeService service)
 {
     _service = service;
 }
Пример #7
0
 public ReportsServices(IUnitOfWork unitOfWork = null)
 {
     _unitOfWork = unitOfWork ?? new UnitOfWork();
     _leave      = new LeaveTypeService();
 }
Пример #8
0
 public LeaveTypeController(ApplicationDbContext context, ILeaveTypeService LeaveTypeService)
 {
     _context          = context;
     _LeaveTypeService = LeaveTypeService;
 }
 public LeaveTypeController(ILeaveTypeService _leaveTypeService)
 {
     this._leaveTypeService = _leaveTypeService;
 }
Пример #10
0
 public LeaveTypeController(ILeaveTypeService leaveTypeService, ISubModuleItemService subModuleItemService, IRoleSubModuleItemService roleSubModuleItemService)
 {
     this.leaveTypeService         = leaveTypeService;
     this.subModuleItemService     = subModuleItemService;
     this.roleSubModuleItemService = roleSubModuleItemService;
 }
Пример #11
0
 public LeaveTypeController(ILeaveTypeService leaveTypeService)
 {
     this.leaveTypeService = leaveTypeService;
 }
 public LeaveTypeController(ILeaveTypeService leaveTypeService)
 {
     _leaveTypeService = leaveTypeService ?? throw new ArgumentNullException(nameof(leaveTypeService));
 }
Пример #13
0
 public LeaveTypesController(ILeaveTypeService _iLeaveTypesService)
 {
     iLeaveTypesService = _iLeaveTypesService;
 }