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)); }
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")); }
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); }
public static long UnSubscribed(CLayer.Mail Mail) { DataLayer.Mail task = new DataLayer.Mail(); return(task.UnSubscribed(Mail)); }
public static string Savemail(CLayer.Mail Mail) { DataLayer.Mail task = new DataLayer.Mail(); return(task.SaveMail(Mail)); }