public override OneToManyMessage Format(MessageBase message)
 {
     PhoneNumberFormatter phoneNumberFormatter = new PhoneNumberFormatter();
     OneToManyMessage _message = message as OneToManyMessage;
     _message.GsmNumbers.ForEach(x => x = phoneNumberFormatter.Format(x));
     //message.Message.Trim();
     return _message;
 }
        public override ManyToManyMessage Format(MessageBase messages)
        {
            PhoneNumberFormatter phoneNumberFormatter = new PhoneNumberFormatter();
            ManyToManyMessage    _messages            = messages as ManyToManyMessage;

            foreach (var item in _messages.PhonesAndMessages)
            {
                phoneNumberFormatter.Format(item.Number);
                //item.Message.Trim();
            }
            return(_messages);
        }