예제 #1
0
 public Task <List <Poll> > GetActive(int amount)
 {
     _logger.Debug("Requesting all active polls");
     return(amount == 0
                         ? _pollRepository.GetActivePollsAsync()
                         : _pollRepository.GetLastNthActivePollsAsync(amount));
 }