public void GetNLSetting(int UserModuleID, int PortalID)
 {
     try
     {
         NL_Controller cont = new NL_Controller();
         List<NL_SettingInfo> objSettingList = cont.GetNLSetting(UserModuleID, PortalID);
         string href = string.Empty;
         string header = string.Empty;
         foreach (NL_SettingInfo objInfo in objSettingList)
         {
             header = "<h4>" + objInfo.ModuleDescription + "</h4>";
             href = objInfo.UnSubscribePageName + PageExt;
         }
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }
 public void GetNLSetting(int UserModuleID, int PortalID)
 {
     try
     {
         NL_Controller cont = new NL_Controller();
         List<NL_SettingInfo> objSettingList = cont.GetNLSetting(UserModuleID, PortalID);
         string href = string.Empty;
         string header = string.Empty;
         foreach (NL_SettingInfo objInfo in objSettingList)
         {
             header = "<h2>" + objInfo.ModuleHeader + "</h2><h4>" + objInfo.ModuleDescription + "</h4>";
             href = objInfo.UnSubscribePageName + PageExt;
         }
         moduleHeader.Text = header;
         UnSubscribe.Text = "<a id='btnUnsubscibe' href='" + href + "' class='sfUnSubscribeButton sfLocale'>Click here to UnSubscribe</a>";
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }
 private void ManageNewsLetterSubscription(string email, ref int? newID)
 {
     string clientIP = Request.UserHostAddress.ToString();
     NL_Controller objController = new NL_Controller();
     objController.SaveEmailSubscriber(email, Int32.Parse(SageUserModuleID), GetPortalID, GetUsername, clientIP);
 }
	private void ManageNewsLetterSubscription(string email, ref int? newID)
	{
		string clientIP = Request.UserHostAddress.ToString();
        int userModuleID = 0;
        userModuleID = Int32.Parse(SageUserModuleID);
		//NewLetterSubscriberController.AddNewLetterSubscribers(email, clientIP, true, GetUsername, DateTime.Now, GetPortalID);
        NL_Controller nlc = new NL_Controller();
        nlc.SaveEmailSubscriber(email, userModuleID, GetPortalID, GetUsername, clientIP);
	}