public ActionResult Get() { //var votesToReturn = VotesDataStore.Current.Votes; var votes = _votesRepository.GetVotes(); var results = Mapper.Map <IEnumerable <VoteViewModel> >(votes); return(Ok(results)); }
public IEnumerable <Vote> GetVotes(int page, int pageLength) { return(_voteRepository.GetVotes(page, pageLength)); }