public UnitOfWork(ImobiliariaContext context) { _context = context; PhysicalPerson = new PhysicalPersonRepository(_context); LegalEntity = new LegalEntityRepository(_context); ImovelRepository = new ImovelRepository(_context); }
public PhysicalPersonController() { _repository = new PhysicalPersonRepository(); }