Example #1
0
        //public ClienteService()
        //{
        //    _ClienteRepository = new ClienteRepository();
        //}

        public IEnumerable <Cliente> All()
        {
            return(_ClienteRepository.All());
        }
Example #2
0
 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)));
 }