예제 #1
0
        public EmprestimoViewModel Excluir(Expression <Func <EmprestimoViewModel, bool> > predicate)
        {
            var mappedPredicate = Mapper.Map <Expression <Func <EmprestimoViewModel, bool> >, Expression <Func <Emprestimo, bool> > >(predicate);

            var mapperModel = _repository.Obter(mappedPredicate);

            return(Mapper.Map <Emprestimo, EmprestimoViewModel>(_service.Excluir(mapperModel)));
        }