public IQueryable <VoteViewModel> GetList() { var votes = _votesRepository.GetList(); var mapper = CustomMapperConfiguration.ConfigCreateMapper <Vote, VoteViewModel>(); return(mapper.Map <IQueryable <Vote>, IQueryable <VoteViewModel> >(votes)); }
public IQueryable <VoteViewModel> GetList() { var votes = _votesRepository.GetList(); var mapper = CustomMapperConfiguration.ConfigCreateMapper <Vote, VoteViewModel>(); return(mapper.Map <IQueryable <Vote>, IQueryable <VoteViewModel> >(votes)); }