Example #1
0
        private static void SendMessageToRequests(EditProduct editProduct, int productID)
        {
            try
            {
                #region Send Message

                var emails  = ProductRequests.GetNewEmails(productID).ToArray();
                var mobiles = ProductRequests.GetNewMobiles(productID).ToArray();

                EmailServices.ProductAvailable(editProduct.Title, emails);
                SMSServices.ProductAvailable(editProduct.Title, String.Join(",", mobiles));

                #endregion Send Message

                ProductRequests.UpdateStatus(emails, mobiles);
            }
            catch (Exception ex) { }
        }