Example #1
0
 public EmployeeInfoesController(IBranchRepository b, IDesignationRepository ds, IDepartmentRepository dp, IEmployeeInfoRepository e)
 {
     this.branchRepository       = b;
     this.departmentRepository   = dp;
     this.designationRepository  = ds;
     this.employeeInfoRepository = e;
 }
 public EventService(ILogger <EventService> logger,
                     GRA.Abstract.IDateTimeProvider dateTimeProvider,
                     IDistributedCache cache,
                     IUserContextProvider userContextProvider,
                     IBranchRepository branchRepository,
                     IChallengeRepository challengeRepository,
                     IChallengeGroupRepository challengeGroupRepository,
                     IEventRepository eventRepository,
                     ILocationRepository locationRepository,
                     IProgramRepository programRepository,
                     ISpatialDistanceRepository spatialDistanceRepository)
     : base(logger, dateTimeProvider, userContextProvider)
 {
     _branchRepository = branchRepository
                         ?? throw new ArgumentNullException(nameof(branchRepository));
     _cache = cache ?? throw new ArgumentNullException(nameof(cache));
     _challengeRepository =
         challengeRepository
         ?? throw new ArgumentNullException(nameof(challengeRepository));
     _challengeGroupRepository = challengeGroupRepository
                                 ?? throw new ArgumentNullException(nameof(challengeGroupRepository));
     _eventRepository = eventRepository
                        ?? throw new ArgumentNullException(nameof(eventRepository));
     _locationRepository = locationRepository
                           ?? throw new ArgumentNullException(nameof(locationRepository));
     _programRepository = programRepository
                          ?? throw new ArgumentNullException(nameof(programRepository));
     _spatialDistanceRepository = spatialDistanceRepository
                                  ?? throw new ArgumentNullException(nameof(spatialDistanceRepository));
 }
 public AttendancesController(IEmployeeInfoRepository e, IAttendance a, IBranchRepository b, IDepartmentRepository d)
 {
     this.attendanceRepository   = a;
     this.employeeInfoRepository = e;
     this.branchRepository       = b;
     this.departmentRepository   = d;
 }
Example #4
0
 public StaffReportController(
     IBranchRepository _Branch
     , IUserRepository _user
     , IBranchDepartmentRepository branchDepartment
     , IStaffsRepository staff
     , IStaffReportRepository staffReport
     , IQueryHelper _QueryHelper
     , ICustomerRepository _Customer
     , IDayOffRepository dayoff
     , ISymbolTimekeepingRepository symboltimekeeping
     , ITransferWorkRepository _TransferWork
     , ISalaryAdvanceRepository _SalaryAdvance
     , IPaymentRepository payment
     )
 {
     BranchRepository           = _Branch;
     userRepository             = _user;
     branchDepartmentRepository = branchDepartment;
     staffRepository            = staff;
     staffReportRepository      = staffReport;
     customerRepository         = _Customer;
     QueryHelper                 = _QueryHelper;
     dayoffRepository            = dayoff;
     symboltimekeepingRepository = symboltimekeeping;
     TransferWorkRepository      = _TransferWork;
     SalaryAdvanceRepository     = _SalaryAdvance;
     paymentRepository           = payment;
 }
Example #5
0
 public UnitOfWork(IPatientRepository patients,
                   IBranchRepository branches,
                   IEventRepository events,
                   ILookUpRepository lookUps,
                   IUserRepository users,
                   ITreatmentRepository treatments,
                   IAddressRepository addresses,
                   IContactRepository contacts,
                   ICountryRepository countries,
                   ICityRepository cities,
                   IClinicRepository clinics,
                   IRoomRepository rooms,
                   AppDbContext smartClinic360DbContext)
 {
     Patients   = patients;
     Branches   = branches;
     Events     = events;
     LookUps    = lookUps;
     Users      = users;
     Treatments = treatments;
     Addresses  = addresses;
     Contacts   = contacts;
     Countries  = countries;
     Cities     = cities;
     Clinics    = clinics;
     Rooms      = rooms;
 }
Example #6
0
 public PrizeWinnerService(ILogger <PrizeWinnerService> logger,
                           GRA.Abstract.IDateTimeProvider dateTimeProvider,
                           IUserContextProvider userContextProvider,
                           IBranchRepository branchRepository,
                           IDrawingCriterionRepository drawingCriterionRepository,
                           IDrawingRepository drawingRepository,
                           IPrizeWinnerRepository prizeWinnerRepository,
                           ISystemRepository systemRepository,
                           ITriggerRepository triggerRepository,
                           IUserRepository userRepository,
                           IVendorCodeRepository vendorCodeRepository,
                           IVendorCodeTypeRepository vendorCodeTypeRepository)
     : base(logger, dateTimeProvider, userContextProvider)
 {
     _branchRepository = branchRepository
                         ?? throw new ArgumentNullException(nameof(branchRepository));
     _drawingCriterionRepository = drawingCriterionRepository
                                   ?? throw new ArgumentNullException(nameof(drawingCriterionRepository));
     _drawingRepository = drawingRepository
                          ?? throw new ArgumentNullException(nameof(drawingRepository));
     _prizeWinnerRepository = prizeWinnerRepository
                              ?? throw new ArgumentNullException(nameof(prizeWinnerRepository));
     _systemRepository = systemRepository
                         ?? throw new ArgumentNullException(nameof(systemRepository));
     _triggerRepository = triggerRepository
                          ?? throw new ArgumentNullException(nameof(triggerRepository));
     _userRepository = userRepository
                       ?? throw new ArgumentNullException(nameof(userRepository));
     _vendorCodeRepository = vendorCodeRepository
                             ?? throw new ArgumentNullException(nameof(vendorCodeRepository));
     _vendorCodeTypeRepository = vendorCodeTypeRepository
                                 ?? throw new ArgumentNullException(nameof(vendorCodeTypeRepository));
     SetManagementPermission(Permission.ViewUserPrizes);
 }
Example #7
0
 public DepartmentUI()
 {
     InitializeComponent();
     departmentRepository = EntityContainer.GetType <IDepartmentRepository>();
     userAccessRepository = EntityContainer.GetType <IUserAccessRepository>();
     branchRepository     = EntityContainer.GetType <IBranchRepository>();
 }
Example #8
0
 public LabourContractController(
     ILabourContractRepository _LabourContract
     , IUserRepository _user
     , IObjectAttributeRepository objectAttribute
     , IStaffsRepository staff
     , ILabourContractTypeRepository LabourContractType
     , IDocumentFieldRepository documentField
     , IDocumentAttributeRepository documentAttribute
     , IProcessPayRepository processpay
     , ICategoryRepository category
     , IBranchRepository branch
     , ITemplatePrintRepository templatePrint
     )
 {
     LabourContractRepository     = _LabourContract;
     userRepository               = _user;
     ObjectAttributeRepository    = objectAttribute;
     staffRepository              = staff;
     LabourContractTypeRepository = LabourContractType;
     DocumentFieldRepository      = documentField;
     DocumentAttributeRepository  = documentAttribute;
     processPayRepository         = processpay;
     categoryRepository           = category;
     branchRepository             = branch;
     templatePrintRepository      = templatePrint;
 }
Example #9
0
        public LoanController(ILoanRepository db, IBranchRepository db2, ApplicationDbContext _context)
        {
            this.db  = db;
            this.db2 = db2;

            this._context = _context;
        }
Example #10
0
 public CourseManager(ICourseRepository courseRepository, IBranchRepository branchRepository, ILanguageRepository languageRepository, ITimeRepository timeRepository)
 {
     _courseRepository   = courseRepository;
     _branchRepository   = branchRepository;
     _languageRepository = languageRepository;
     _timeRepository     = timeRepository;
 }
Example #11
0
        public ImportUI()
        {
            incentiveRepository        = EntityContainer.GetType <IIncentiveRepository>();
            employeeRepository         = EntityContainer.GetType <IEmployeeRepository>();
            absenceRepository          = EntityContainer.GetType <IAbsenceRepository>();
            overTimeRepository         = EntityContainer.GetType <IOverTimeRepository>();
            branchRepository           = EntityContainer.GetType <IBranchRepository>();
            departmentRepository       = EntityContainer.GetType <IDepartmentRepository>();
            gradeRepository            = EntityContainer.GetType <IGradeRepository>();
            occupationRepository       = EntityContainer.GetType <IOccupationRepository>();
            principalRepository        = EntityContainer.GetType <IPrincipalRepository>();
            insuranceProgramRepository = EntityContainer.GetType <IInsuranceProgramRepository>();


            employeeDepartmentRepository = EntityContainer.GetType <IEmployeeDepartmentRepository>();
            employeeGradeRepository      = EntityContainer.GetType <IEmployeeGradeRepository>();
            employeeOccupationRepository = EntityContainer.GetType <IEmployeeOccupationRepository>();
            employeePrincipalRepository  = EntityContainer.GetType <IEmployeePrincipalRepository>();
            employeeStatusRepository     = EntityContainer.GetType <IEmployeeStatusRepository>();
            employeeInsuranceRepository  = EntityContainer.GetType <IEmployeeInsuranceRepository>();
            employeeSalaryRepository     = EntityContainer.GetType <IEmployeeSalaryRepository>();


            InitializeComponent();
        }
Example #12
0
 public SiteService(ILogger <SiteService> logger,
                    GRA.Abstract.IDateTimeProvider dateTimeProvider,
                    IUserContextProvider userContextProvider,
                    IBranchRepository branchRepository,
                    IProgramRepository programRepository,
                    ISiteRepository siteRepository,
                    ISiteSettingRepository siteSettingRepository,
                    ISpatialDistanceRepository spatialDistanceRepository,
                    ISystemRepository systemRepository,
                    SiteLookupService siteLookupService,
                    IUserRepository userRepository)
     : base(logger, dateTimeProvider, userContextProvider)
 {
     SetManagementPermission(Permission.ManageSites);
     _branchRepository = branchRepository
                         ?? throw new ArgumentNullException(nameof(branchRepository));
     _programRepository = programRepository
                          ?? throw new ArgumentNullException(nameof(programRepository));
     _siteRepository = siteRepository
                       ?? throw new ArgumentNullException(nameof(siteRepository));
     _siteSettingRepository = siteSettingRepository
                              ?? throw new ArgumentNullException(nameof(siteSettingRepository));
     _spatialDistanceRepository = spatialDistanceRepository
                                  ?? throw new ArgumentNullException(nameof(spatialDistanceRepository));
     _systemRepository = systemRepository
                         ?? throw new ArgumentNullException(nameof(systemRepository));
     _siteLookupService = siteLookupService
                          ?? throw new ArgumentException(nameof(siteLookupService));
     _userRepository = userRepository
                       ?? throw new ArgumentNullException(nameof(userRepository));
 }
Example #13
0
 public DrawingService(ILogger <DrawingService> logger,
                       GRA.Abstract.IDateTimeProvider dateTimeProvider,
                       IUserContextProvider userContextProvider,
                       IBranchRepository branchRepository,
                       IDrawingRepository drawingRepository,
                       IDrawingCriterionRepository drawingCriterionRepository,
                       IMailRepository mailRepository,
                       IPrizeWinnerRepository prizeWinnerRepository,
                       IProgramRepository programRepository,
                       ISystemRepository systemRepository)
     : base(logger, dateTimeProvider, userContextProvider)
 {
     _branchRepository = branchRepository
                         ?? throw new ArgumentNullException(nameof(branchRepository));
     _drawingRepository = drawingRepository
                          ?? throw new ArgumentNullException(nameof(drawingRepository));
     _drawingCriterionRepository = drawingCriterionRepository
                                   ?? throw new ArgumentNullException(
                                             nameof(drawingCriterionRepository));
     _mailRepository = mailRepository
                       ?? throw new ArgumentNullException(nameof(mailRepository));
     _prizeWinnerRepository = prizeWinnerRepository
                              ?? throw new ArgumentNullException(nameof(prizeWinnerRepository));
     _programRepository = programRepository
                          ?? throw new ArgumentNullException(nameof(programRepository));
     _systemRepository = systemRepository
                         ?? throw new ArgumentNullException(nameof(systemRepository));
 }
Example #14
0
 public EntriesController(
     ILanguageManager languageManager,
     IPeriodManager periodManager,
     IWritableOptions <DefaultKeysOptions> defaultKeysOptions,
     IEntryRepository entryRepo,
     IEntryItemRepository entryItemRepo,
     IAccountRepository accountRepo,
     IAccountBalanceRepository accountBalanceRep,
     IAccountBalanceService accountBalanceService,
     ICostCenterRepository costCenterRepo,
     IBranchRepository branchRepo,
     ICurrencyRepository currencyRepo,
     IReportService reportService,
     IFinancialPeriodRepository financialPeriodRepo) : base(languageManager)
 {
     _periodManager         = periodManager;
     _defaultKeysOptions    = defaultKeysOptions;
     _entryRepo             = entryRepo;
     _entryItemRepo         = entryItemRepo;
     _accountRepo           = accountRepo;
     _accountBalanceRep     = accountBalanceRep;
     _accountBalanceService = accountBalanceService;
     _costCenterRepo        = costCenterRepo;
     _branchRepo            = branchRepo;
     _currencyRepo          = currencyRepo;
     _reportService         = reportService;
     _financialPeriodRepo   = financialPeriodRepo;
 }
 public ReportService(ILogger <ReportService> logger,
                      GRA.Abstract.IDateTimeProvider dateTimeProvider,
                      IUserContextProvider userContextProvider,
                      IServiceProvider serviceProvider,
                      IDistributedCache cache,
                      IBranchRepository branchRepository,
                      IReportCriterionRepository reportCriterionRepository,
                      IReportRequestRepository reportRequestRepository,
                      IUserRepository userRepository,
                      IUserLogRepository userLogRepository,
                      ISystemRepository systemRepository)
     : base(logger, dateTimeProvider, userContextProvider)
 {
     _serviceProvider = serviceProvider
                        ?? throw new ArgumentNullException(nameof(serviceProvider));
     _cache            = cache ?? throw new ArgumentNullException(nameof(cache));
     _branchRepository = branchRepository
                         ?? throw new ArgumentNullException(nameof(branchRepository));
     _reportCriterionRepository = reportCriterionRepository
                                  ?? throw new ArgumentNullException(nameof(reportCriterionRepository));
     _reportRequestRepository = reportRequestRepository
                                ?? throw new ArgumentNullException(nameof(reportRequestRepository));
     _userRepository = userRepository
                       ?? throw new ArgumentNullException(nameof(userRepository));
     _userLogRepository = userLogRepository
                          ?? throw new ArgumentNullException(nameof(userLogRepository));
     _systemRepository = systemRepository
                         ?? throw new ArgumentNullException(nameof(systemRepository));
 }
 public BranchController(IErrorLog errorLog, IBranchRepository branchContext, ILedgerAccountRepository iLedgerAccountRepository)
 {
     _errorLog = errorLog;
     _iLedgerAccountRepository = iLedgerAccountRepository;
     _branchContext            = branchContext;
     companyId = Convert.ToInt32(HttpContext.Current.Session["CompanyId"]);
 }
Example #17
0
 public TriggerService(ILogger <TriggerService> logger,
                       GRA.Abstract.IDateTimeProvider dateTimeProvider,
                       IUserContextProvider userContextProvider,
                       IAvatarBundleRepository avatarBundleRepository,
                       IBranchRepository branchRepository,
                       IEventRepository eventRepository,
                       IProgramRepository programRepository,
                       ISystemRepository systemRepository,
                       ITriggerRepository triggerRepository,
                       SiteLookupService siteLookupService)
     : base(logger, dateTimeProvider, userContextProvider)
 {
     SetManagementPermission(Permission.ManageTriggers);
     _avatarBundleRepository = avatarBundleRepository
                               ?? throw new ArgumentNullException(
                                         nameof(avatarBundleRepository));
     _branchRepository = branchRepository
                         ?? throw new ArgumentNullException(nameof(branchRepository));
     _eventRepository = eventRepository
                        ?? throw new ArgumentNullException(nameof(eventRepository));
     _programRepository = programRepository
                          ?? throw new ArgumentNullException(nameof(programRepository));
     _systemRepository = systemRepository
                         ?? throw new ArgumentNullException(nameof(systemRepository));
     _triggerRepository = triggerRepository
                          ?? throw new ArgumentNullException(nameof(triggerRepository));
     _siteLookupService = siteLookupService
                          ?? throw new ArgumentNullException(nameof(siteLookupService));
 }
 public MongoOperations(
     IBranchRepository branchRepository,
     ICertificateRepository certificateRepository,
     ICompanyRepository companyRepository,
     ICourseRepository courseRepository,
     IDegreeRepository degreeRepository,
     IExamRepository examRepository,
     IExamTermRepository examTermRepository,
     IExamResultRepository examResultRepository,
     IGivenCertificateRepository givenCertificateRepository,
     IGivenDegreeRepository givenDegreeRepository,
     IPersonalLogRepository personalLogRepository,
     IMeetingRepository meetingRepository,
     IUserRepository userRepository)
 {
     this.branchRepository           = branchRepository;
     this.certificateRepository      = certificateRepository;
     this.companyRepository          = companyRepository;
     this.courseRepository           = courseRepository;
     this.degreeRepository           = degreeRepository;
     this.examRepository             = examRepository;
     this.examTermRepository         = examTermRepository;
     this.examResultRepository       = examResultRepository;
     this.givenCertificateRepository = givenCertificateRepository;
     this.givenDegreeRepository      = givenDegreeRepository;
     this.personalLogRepository      = personalLogRepository;
     this.meetingRepository          = meetingRepository;
     this.userRepository             = userRepository;
 }
Example #19
0
 public UnitOfWork(DbContext context, IBranchRepository branchRepository, IEmployRepository employRepository, IDepartmentRepository departmentRepository)
 {
     _context             = context;
     BranchRepository     = branchRepository;
     DepartmentRepository = departmentRepository;
     EmployRepository     = employRepository;
 }
Example #20
0
 public WorkerFactory(IDepartmentRepository departmentRepository, IJobRepository jobRepository, IRoleRepository roleRepository, IBranchRepository branchRepository)
 {
     _departmentRepository = departmentRepository;
     _jobRepository        = jobRepository;
     _roleRepository       = roleRepository;
     _branchRepository     = branchRepository;
 }
 public ResignsController(IEmployeeInfoRepository e, IResignRepository a, IBranchRepository b, IOverTimeRepository o)
 {
     this.resignRepository       = a;
     this.employeeInfoRepository = e;
     this.branchRepository       = b;
     this.overTimeRepository     = o;
 }
Example #22
0
 public TimekeepingListController(
     ITimekeepingListRepository _TimekeepingList
     , IUserRepository _user
     , IWorkSchedulesRepository _WorkSchedules
     , ITimekeepingSynthesisRepository timekeepingSynthesis
     , IStaffsRepository staff
     , IShiftsRepository shifts
     , ILocationRepository location
     , IHolidaysRepository holiday
     , ICategoryRepository category
     , ITimekeepingRepository timekeeping
     , IDayOffRepository dayoff
     , IBranchDepartmentRepository department
     , IBranchRepository branch
     )
 {
     TimekeepingListRepository      = _TimekeepingList;
     userRepository                 = _user;
     departmentRepository           = department;
     WorkSchedulesRepository        = _WorkSchedules;
     StaffsRepository               = staff;
     shiftsRepository               = shifts;
     locationRepository             = location;
     holidayRepository              = holiday;
     categoryRepository             = category;
     timekeepingRepository          = timekeeping;
     dayoffRepository               = dayoff;
     timekeepingSynthesisRepository = timekeepingSynthesis;
     branchRepository               = branch;
 }
 public SetupMultipleProgramService(ILogger <SetupMultipleProgramService> logger,
                                    GRA.Abstract.IDateTimeProvider dateTimeProvider,
                                    IAuthorizationCodeRepository authorizationCodeRepository,
                                    IBranchRepository branchRepository,
                                    IChallengeTaskRepository challengeTaskRepository,
                                    IProgramRepository programRepository,
                                    IRoleRepository roleRepository,
                                    ISystemRepository systemRepository,
                                    IPointTranslationRepository pointTranslationRepository,
                                    IUserRepository userRepository) : base(logger, dateTimeProvider)
 {
     _authorizationCodeRepository = authorizationCodeRepository
                                    ?? throw new ArgumentNullException(nameof(authorizationCodeRepository));
     _branchRepository = branchRepository
                         ?? throw new ArgumentNullException(nameof(branchRepository));
     _challengeTaskRepository = challengeTaskRepository
                                ?? throw new ArgumentNullException(nameof(challengeTaskRepository));
     _programRepository = programRepository
                          ?? throw new ArgumentNullException(nameof(programRepository));
     _roleRepository = roleRepository
                       ?? throw new ArgumentNullException(nameof(roleRepository));
     _systemRepository = systemRepository
                         ?? throw new ArgumentNullException(nameof(systemRepository));
     _pointTranslationRepository = pointTranslationRepository
                                   ?? throw new ArgumentNullException(nameof(pointTranslationRepository));
     _userRepository = userRepository
                       ?? throw new ArgumentNullException(nameof(userRepository));
 }
Example #24
0
 public ChallengeService(ILogger <ChallengeService> logger,
                         GRA.Abstract.IDateTimeProvider dateTimeProvider,
                         IUserContextProvider userContextProvider,
                         IBadgeRepository badgeRepository,
                         IBranchRepository branchRepository,
                         ICategoryRepository categoryRepository,
                         IChallengeRepository challengeRepository,
                         IChallengeGroupRepository challengeGroupRepository,
                         IChallengeTaskRepository challengeTaskRepository,
                         IEventRepository eventRepository,
                         IPathResolver pathResolver,
                         ITriggerRepository triggerRepository,
                         IUserRepository userRepository) : base(logger, dateTimeProvider, userContextProvider)
 {
     _badgeRepository     = Require.IsNotNull(badgeRepository, nameof(badgeRepository));
     _branchRepository    = Require.IsNotNull(branchRepository, nameof(branchRepository));
     _categoryRepository  = Require.IsNotNull(categoryRepository, nameof(categoryRepository));
     _challengeRepository = Require.IsNotNull(challengeRepository,
                                              nameof(challengeRepository));
     _challengeGroupRepository = Require.IsNotNull(challengeGroupRepository,
                                                   nameof(challengeGroupRepository));
     _challengeTaskRepository = Require.IsNotNull(challengeTaskRepository,
                                                  nameof(challengeTaskRepository));
     _eventRepository   = Require.IsNotNull(eventRepository, nameof(eventRepository));
     _pathResolver      = Require.IsNotNull(pathResolver, nameof(pathResolver));
     _triggerRepository = Require.IsNotNull(triggerRepository, nameof(triggerRepository));
     _userRepository    = Require.IsNotNull(userRepository, nameof(userRepository));
 }
Example #25
0
 public TimekeepingController(
     ITimekeepingRepository _Timekeeping
     , IUserRepository _user
     , IDayOffRepository dayoff
     , IWorkSchedulesRepository workSchedules
     , IShiftsRepository shifts
     , IHolidaysRepository holiday
     , ICategoryRepository category
     , ITimekeepingSynthesisRepository timekeepingSynthesis
     , IBranchDepartmentRepository department
     , IBranchRepository branch
     , ISymbolTimekeepingRepository symbolTimekeeping
     , IRegisterForOvertimeRepository registerForOvertime
     , ITimekeepingListRepository timekeepingList
     , IStaffsRepository staff
     , ITaskRepository task
     )
 {
     TimekeepingRepository          = _Timekeeping;
     userRepository                 = _user;
     dayoffRepository               = dayoff;
     workSchedulesRepository        = workSchedules;
     shiftsRepository               = shifts;
     holidayRepository              = holiday;
     categoryRepository             = category;
     timekeepingSynthesisRepository = timekeepingSynthesis;
     departmentRepository           = department;
     branchRepository               = branch;
     symboltimekeepingRepository    = symbolTimekeeping;
     registerForOvertimeRepository  = registerForOvertime;
     timekeepingListRepository      = timekeepingList;
     staffRepository                = staff;
     taskRepository                 = task;
 }
Example #26
0
 public Handler(IBranchRepository repository,
                IUserIdentityService userIdentityService,
                IMapper mapper)
 {
     this._repository          = repository;
     this._userIdentityService = userIdentityService;
     this._mapper = mapper;
 }
Example #27
0
 public EmployeeInfoesController(IBranchRepository b, IDesignationRepository ds, IDepartmentRepository dp, IEmployeeInfoRepository e, IHttpContextAccessor f)
 {
     this.branchRepository       = b;
     this.departmentRepository   = dp;
     this.designationRepository  = ds;
     this.employeeInfoRepository = e;
     this.httpContextAccessor    = f;
 }
 public BranchController(IBranchRepository branchRepository,
                         IRoomRepository roomRepository,
                         IHostingEnvironment hostingEnvironment)
 {
     _branchRepository       = branchRepository;
     _roomRepository         = roomRepository;
     this.hostingEnvironment = hostingEnvironment;
 }
Example #29
0
        public BranchListUI(DepartmentUI frmDepartment)
        {
            InitializeComponent();
            branchRepository = EntityContainer.GetType <IBranchRepository>();

            this.frmDepartment = frmDepartment;
            formActive         = "Department";
        }
Example #30
0
 /// <summary>
 /// Ctor with dependencies
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="branchRepository"></param>
 /// <param name="branchManager"></param>
 public BranchController(ILogger <BranchController> logger,
                         IBranchRepository branchRepository,
                         IBranchManager branchManager)
 {
     _logger           = logger ?? throw new ArgumentNullException(nameof(logger));
     _branchRepository = branchRepository ?? throw new ArgumentNullException(nameof(branchRepository));
     _branchManager    = branchManager ?? throw new ArgumentNullException(nameof(branchManager));
 }
 protected IEnumerable<SelectListItem> MapBranchesToSelectListItems(IBranchRepository branchRepository)
 {
     return branchRepository
             .All
             .Select(branch => new SelectListItem
             {
                 Text = branch.Name,
                 Value = branch.Name
             });
 }
 public AuthenticationController(IBranchRepository branchRepository, IAuthenticationService authenticationService)
 {
     this.branchRepository = branchRepository;
     this.authenticationService = authenticationService;
 }
Example #33
0
 public ViewPresenter(IBranchRepository branchRepo, IEmployeeRepository employeeRepo)
 {
     _branchRepo = branchRepo;
     _employeeRepo = employeeRepo;
 }
Example #34
0
 public AddPresenter(IBranchRepository branchRepo, IProvinceRepository provinceRepo, ICityRepository cityRepo)
 {
     _branchRepo = branchRepo;
     _provinceRepo = provinceRepo;
     _cityRepo = cityRepo;
 }
Example #35
0
 public BranchController(IBranchRepository branchRepository)
 {
     this.branchRepository = branchRepository;
 }
 public CollectionController(ICollectionService collectionService, IBranchRepository branchRepository)
 {
     this.collectionService = collectionService;
     this.branchRepository = branchRepository;
 }
 public GamingTrendController(IBranchRepository branchRepository, IGameService gameService, ITrendChartEngine trendChartEngine)
 {
     this.branchRepository = branchRepository;
     this.gameService = gameService;
     this.trendChartEngine = trendChartEngine;
 }
Example #38
0
 public RevenueController(IBranchRepository branchRepository, IRevenueService revenueService)
 {
     this.branchRepository = branchRepository;
     this.revenueService = revenueService;
 }
 public BranchController()
 {
     this._branchRepository = new BranchRepository(this._dbConnStringName);
     this._employeeRepository = new EmployeeRepository(this._dbConnStringName);
 }
 public GamingConsoleController(IGamingConsoleRepository gamingConsoleRepository, IBranchRepository branchRepository)
 {
     this.gamingConsoleRepository = gamingConsoleRepository;
     this.branchRepository = branchRepository;
 }
 public ViewAllPresenter(IBranchRepository branchRepo)
 {
     _branchRepo = branchRepo;
 }
 public MonthlyExpensesController(IBranchRepository branchRepository, IMonthlyExpensesRepository monthlyExpensesRepository)
 {
     this.branchRepository = branchRepository;
     this.monthlyExpensesRepository = monthlyExpensesRepository;
 }
Example #43
0
 public UserController(IUserRepository userRepository, IBranchRepository branchRepository)
 {
     this.userRepository = userRepository;
     this.branchRepository = branchRepository;
 }
Example #44
0
 public AdminController(IBranchRepository branchRepository, IGameService gameService, IGameRepository gameRepository)
 {
     this.branchRepository = branchRepository;
     this.gameService = gameService;
     this.gameRepository = gameRepository;
 }