public SalesIncentiveSettingsController() { var dbfactory = new DatabaseFactory(); _salesIncentiveService = new SalesIncentiveSettingsService(new SalesIncentiveSettingsRepository(dbfactory), new UnitOfWork(dbfactory)); _salesOrderService = new SalesOrderService(new SalesOrderRepository(dbfactory), new SalesOrderDetailRepository(dbfactory), new SalesOrderApprovalRepository(dbfactory), new NotificationRepository(dbfactory), new NotificationDetailRepository(dbfactory), new UnitOfWork(dbfactory)); _incentivePaymentService = new IncentivePaymentService(new IncentivePaymentRepository(dbfactory), new SalesIncentiveSettingsRepository(dbfactory) ,new UnitOfWork(dbfactory)); _hrmDesignationService = new HrmDesignationService(new HrmDesignationRepository(dbfactory), new UnitOfWork(dbfactory)); _hrmEmployeeService = new HrmEmployeeService(new HrmEmployeeRepository(dbfactory), new UnitOfWork(dbfactory)); _SecCompanyService = new SecCompanyService(new SecCompanyRepository(dbfactory), new UnitOfWork(dbfactory)); }
public DesignationController() { var dbfactory = new DatabaseFactory(); _HrmDesignationService = new HrmDesignationService(new HrmDesignationRepository(dbfactory), new UnitOfWork(dbfactory)); }