Ejemplo n.º 1
0
        public IList <JobType> GetAllJobType()
        {
            _jobTypeRepository = new JobTypeRepository(_dbContext);
            var data = _jobTypeRepository.GetAllJobType();

            return(data);
        }
 public JobPostCategoryUnitOfWork(DataContext context)
 {
     this.Context           = context;
     Places                 = new PlaceRepository(context);
     JobTypes               = new JobTypeRepository(context);
     SalaryTypes            = new SalaryTypeRepository(context);
     ContractTypes          = new ContractTypeRepository(context);
     DayCategories          = new DayCategoryRepository(context);
     WeeklySalaryCategories = new WeeklySalaryCategoryRepository(context);
     HourlySalaryCategories = new HourlySalaryCategoryRepository(context);
 }
Ejemplo n.º 3
0
 public UnitOfWork(ApplicationDbContext context)
 {
     _context             = context;
     StockItems           = new StockRepository(_context);
     Invoices             = new InvoiceRepository(_context);
     JobCards             = new JobCardRepository(_context);
     JobStatuses          = new JobStatusRepository(_context);
     Suppliers            = new SupplierRepository(_context);
     JobTypes             = new JobTypeRepository(_context);
     Customers            = new CustomerRepository(_context);
     ServiceContracts     = new ServiceContractRepository(_context);
     MaintenanceContracts = new MaintenanceContractRepository(_context);
     Areas                     = new AreaRepository(_context);
     PurchaseOrders            = new PurchaseOrderRepository(_context);
     PurchaseOrderItems        = new PurchaseOrderItemRepository(_context);
     ApplicationUserSignatures = new ApplicationUserSignatureRepository(_context);
     CustomerSignatures        = new CustomerSignatureRepository(_context);
     JobStatusHistory          = new JobStatusHistoryRepository(_context);
     Quotes                    = new QuotationRepository(_context);
     StockItemQuantities       = new StockItemQuantityRepository(_context);
 }