Exemplo n.º 1
0
 public List <EmpresaVM> All()
 {
     return(this._EmpresaRepository.GetAll(true).Select(x => EmpresaAdapter.ToViewModel(x, true)).ToList());
 }
Exemplo n.º 2
0
 public List <EmpresaVM> AllByTermo(string termo)
 {
     return(this._EmpresaRepository.GetAllByTermo(termo).Select(x => EmpresaAdapter.ToViewModel(x, true)).ToList());
 }
Exemplo n.º 3
0
 public EmpresaVM Detail(int id)
 {
     return(EmpresaAdapter.ToViewModel(this._EmpresaRepository.Get(id), true));
 }