Exemple #1
0
 public UnitOfWork(ImobiliariaContext context)
 {
     _context         = context;
     PhysicalPerson   = new PhysicalPersonRepository(_context);
     LegalEntity      = new LegalEntityRepository(_context);
     ImovelRepository = new ImovelRepository(_context);
 }
Exemple #2
0
 public ImovelController(ImovelRepository repository)
 {
     _repository = repository;
 }
Exemple #3
0
 public ImovelViewModel(ImovelRepository imovelRepository)
 {
     this.listaImovel = imovelRepository.Get();
 }