Esempio n. 1
0
        public async Task ViewVoters()
        {
            Console.WriteLine("Got view voters request");
            var voters = _votingService.GetVoters();

            var sb = new StringBuilder();

            sb.AppendLine("Current Voters:");

            foreach (var u in voters)
            {
                sb.AppendLine($"{u.Username}");
            }

            await ReplyAsync(sb.ToString());
        }