Пример #1
0
        /// <summary>
        /// Sms sending
        /// </summary>
        /// <param name="model">Model of details</param>
        /// <returns>Refresh page</returns>
        public ActionResult SendSmsNotification(Product_DetailModel model)
        {
            var notification = new Notifications_Sender(Data);

            notification.ProductNotificationSms(model.NotificationMobileNumber, _product.GetModelId());
            return(RedirectToAction("ShowDetails"));
        }
Пример #2
0
        /// <summary>
        /// Email sending
        /// </summary>
        /// <param name="model">Model of details</param>
        /// <returns>Refresh page</returns>
        public ActionResult SendEmailNotification(Product_DetailModel model)
        {
            // Send notification on email
            var notification = new Notifications_Sender(Data);

            if (_product.GetModelId() != null)
            {
                notification.ProductNotificationEmail(model.NotificationEmailAddress, _product.GetModelId());
            }
            return(RedirectToAction("ShowDetails"));
        }