Example #1
0
        public override string Execute()
        {
            var participants = EventsRepository.GetAllParticipantsGroupsForEvent(Message.ChatName);

            if (participants == null)
            {
                return("0");
            }

            var suredParticipants    = participants.Where(x => x.IsSure).ToList();
            var notSuredParticipants = participants.Where(x => !x.IsSure).ToList();

            return(OutputFormatter.FormatCountResponse(
                       CountParticipants(suredParticipants),
                       CountParticipants(notSuredParticipants)));
        }
Example #2
0
        public override string Execute()
        {
            var participants = ParticipantsService.GetAllParticipantsForGame(Message.Chat.Name);

            return(OutputFormatter.FormatCountResponse(participants));
        }