コード例 #1
0
        public override string Execute()
        {
            var participantsGroup = MessageParser.GetParticipantsGroupFromMessage(Message);

            participantsGroup.IsSure = false;
            EventsRepository.AddParticipantsGroupToEvent(Message.ChatName, participantsGroup);
            return(base.Execute());
        }
コード例 #2
0
        public override string Execute()
        {
            var participantsGroup = MessageParser.GetParticipantsGroupFromMessage(Message);

            participantsGroup.IsSure = false;

            if (!ExecutionWillUpdateCurrentCount(participantsGroup))
            {
                return(string.Empty);
            }

            EventsRepository.AddParticipantsGroupToEvent(Message.ChatName, participantsGroup);
            return(base.Execute());
        }