コード例 #1
0
        public long UnSubscribed(CLayer.Mail data)
        {
            List <DataPlug.Parameter> param = new List <DataPlug.Parameter>();

            param.Add(Connection.GetParameter("pEmailId", DataPlug.DataType._Varchar, data.Mailaddress));
            object result = Connection.ExecuteQueryScalar("subscriptions_Unsubscribed", param);

            return(Connection.ToLong(result));
        }
コード例 #2
0
        public ActionResult UnSubscribed(Models.UnSubscribeModel data)
        {
            try
            {
                CLayer.Mail pt = new CLayer.Mail()
                {
                    Mailaddress = data.Mailaddress,
                };
                long i = BLayer.Mail.UnSubscribed(pt);
                // return RedirectToAction("Index");
            }
            catch
            {
                //return RedirectToAction("Index");
            }

            return(RedirectToAction("Index"));
        }
コード例 #3
0
        public ActionResult MailSubmit(string Mailadd)
        {
            string msg = "";

            try
            {
                Models.MailDataModel data = new Models.MailDataModel();
                CLayer.Mail          m    = new CLayer.Mail()
                {
                    Mailaddress = Mailadd
                };
                msg = BLayer.Mail.Savemail(m);
                return(null);
            }
            catch (Exception ex)
            {
                Common.LogHandler.HandleError(ex);
            }
            return(null);
        }
コード例 #4
0
 public static long UnSubscribed(CLayer.Mail Mail)
 {
     DataLayer.Mail task = new DataLayer.Mail();
     return(task.UnSubscribed(Mail));
 }
コード例 #5
0
 public static string Savemail(CLayer.Mail Mail)
 {
     DataLayer.Mail task = new DataLayer.Mail();
     return(task.SaveMail(Mail));
 }