public string AddUpdateCouponDetails(CouponSaveObj couponSaveObj, CouponEmailInfo couponEmailObj, AspxCommonInfo aspxCommonObj)
        {
            string checkMessage = string.Empty;
            try
            {
                try
                {
                    AspxCouponManageController.AddUpdateCoupons(couponSaveObj, aspxCommonObj);
                    checkMessage += "dataSave" + ",";
                }
                catch (Exception)
                {
                    checkMessage += "dataSaveFail" + ",";
                }

                if (checkMessage == "dataSave,")
                {
                    //if (portalUserEmailID != "")
                    if (couponEmailObj.ReceiverEmail != "")
                    {
                        try
                        {
                            // cmSQLProvider.SendCouponCodeEmail(senderEmail, portalUserEmailID, subject, messageBody);
                            AspxCouponManageController.SendCouponCodeEmail(couponEmailObj);
                            checkMessage += "emailSend";
                        }
                        catch (Exception)
                        {
                            checkMessage += "emailSendFail";
                        }
                    }
                    else
                    {
                        checkMessage += "emailIDBlank";
                    }
                }
                else
                {
                    checkMessage += "emailSendFail";
                }

                return checkMessage;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        //public void SendCouponCodeEmail(string senderEmail, string receiverEmailDs, string subject,ArrayList messageBody)
        public void SendCouponCodeEmail(CouponEmailInfo couponEmailObj)
        {
            string[] receiverIDs;
            char[] spliter = { '#' };
        //    receiverIDs = receiverEmailDs.Split(spliter);
            receiverIDs = couponEmailObj.ReceiverEmail.Split(spliter);

            for (int i = 0; i < receiverIDs.Length; i++)
            {
                string receiverEmailID = receiverIDs[i];
                string emailSuperAdmin;
                string emailSiteAdmin;
                SageFrameConfig pagebase = new SageFrameConfig();
                emailSuperAdmin =pagebase.GetSettingsByKey(SageFrameSettingKeys.SuperUserEmail);
                emailSiteAdmin = pagebase.GetSettingsByKey(SageFrameSettingKeys.SiteAdminEmailAddress);
              //string individualMsgBody = messageBody[i].ToString();
                string individualMsgBody = couponEmailObj.MessageBodyTemplate[i].ToString();
           //   MailHelper.SendMailNoAttachment(senderEmail, receiverEmailID, subject, individualMsgBody, emailSiteAdmin, emailSuperAdmin);
                MailHelper.SendMailNoAttachment(couponEmailObj.SenderEmail, receiverEmailID, couponEmailObj.Subject, individualMsgBody, emailSiteAdmin, emailSuperAdmin);
           }
        }