public UnitOfWork(FactoringContext context) { _context = context; CompanyRespository = new CompanyRepository(_context); RepresentivePeopleRepository = new RepresentivePeopleRepository(_context); BussinessTypeRepository = new BussinessTypeRepository(_context); CountryRepository = new CountryRepository(_context); SocialStatusRepository = new SocialStatusRepository(_context); PersonStatusRepository = new PersonStatusRepository(_context); DocumentTypeRepository = new DocumentTypeRepository(_context); }
public PersonStatusController() { repository = new PersonStatusRepository(); }