Esempio n. 1
0
        //---------------------------------------------------------------------------
        public static void UpdateSmsMobileNo(string oldMobile, UsersDataEntity usersDataObject)
        {
            SMSNumbersEntity smsUser = SMSNumbersFactory.GetObject(usersDataObject.ModuleTypeID, oldMobile);

            if (smsUser != null)
            {
                if (!string.IsNullOrEmpty(usersDataObject.Mobile))
                {
                    smsUser.Numbers = usersDataObject.Mobile;
                    SMSNumbersFactory.Update(smsUser);
                }
                else
                {
                    SMSNumbersFactory.Delete(smsUser.NumID);
                }
            }
            else
            {
                UsersDataFactory.RegisterInSms(usersDataObject);
            }
        }
Esempio n. 2
0
        //---------------------------------------------------------------------------
        public static void UpdateSmsMobileNo(string oldMobile, MessagesEntity msg)
        {
            SMSNumbersEntity smsUser = SMSNumbersFactory.GetObject(msg.ModuleTypeID, oldMobile);

            if (smsUser != null)
            {
                if (!string.IsNullOrEmpty(msg.Mobile))
                {
                    smsUser.Numbers = msg.Mobile;
                    SMSNumbersFactory.Update(smsUser);
                }
                else
                {
                    SMSNumbersFactory.Delete(smsUser.NumID);
                }
            }
            else
            {
                MessagesFactory.RegisterInSms(msg);
            }
        }
Esempio n. 3
0
 //---------------------------------------------------------------------------
 public static void UnRegisterInSms(UsersDataEntity usersDataObject)
 {
     SMSNumbersFactory.Delete(usersDataObject.ModuleTypeID, usersDataObject.Mobile);
 }
Esempio n. 4
0
 //---------------------------------------------------------------------------
 public static void UnRegisterInSms(MessagesEntity msg)
 {
     SMSNumbersFactory.Delete(msg.ModuleTypeID, msg.Mobile);
 }