//public ClienteService() //{ // _ClienteRepository = new ClienteRepository(); //} public IEnumerable <Cliente> All() { return(_ClienteRepository.All()); }
public IEnumerable <ClienteViewModel> All(object param = null, Expression <Func <ClienteViewModel, object> > selector = null, IDbTransaction transaction = null) { return(_mapper.Map <IEnumerable <ClienteViewModel> >(_clienteRepository.All(param: param, selector: _mapper.Map <Expression <Func <Cliente, object> > >(selector), transaction: transaction))); }