예제 #1
0
        public static void Register(string email, string password)
        {
            try
            {
                MailService ms = new MailService();
                ms.Email      = email;
                ms.EmailTitle = "User registration";
                ms.EmailBody  = "Body of message...";

                if (ms.ValidEmail() == true)
                {
                    ms.SendNotification();
                    ms.AddNotificationToDB();
                }

                SmsService ss = new SmsService();
                ss.Number  = "111 111 111";
                ss.SmsText = "User successfully registered...";

                ss.SendNotification();
                //ss.AddNotificationToDB();
            }
            catch (Exception ex)
            {
                throw;
            }
        }