Пример #1
0
 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);
 }
Пример #2
0
 public PersonStatusController()
 {
     repository = new PersonStatusRepository();
 }