Пример #1
0
        public IQueryable <VoteViewModel> GetList()
        {
            var votes  = _votesRepository.GetList();
            var mapper = CustomMapperConfiguration.ConfigCreateMapper <Vote, VoteViewModel>();

            return(mapper.Map <IQueryable <Vote>, IQueryable <VoteViewModel> >(votes));
        }