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))); }
public override string Execute() { var participants = ParticipantsService.GetAllParticipantsForGame(Message.Chat.Name); return(OutputFormatter.FormatCountResponse(participants)); }