public ActionResult LoadForAlertEdit(int alertID) { Session session = Helpers.AuthenticationHelper.GetSession(System.Web.HttpContext.Current); BusinessLibrary.Library.EmailAlertLibrary eal = new BusinessLibrary.Library.EmailAlertLibrary(System.Web.HttpContext.Current, session); return(PartialView("~/Views/UserManagement/EmailAlertEdit.cshtml", eal.GetForExistingAlert(alertID))); }
public ActionResult OnCurrencyFromChange(BusinessLibrary.ViewModels.EmailAlertViewModel emailAlert) { Session session = Helpers.AuthenticationHelper.GetSession(System.Web.HttpContext.Current); BusinessLibrary.Library.EmailAlertLibrary eal = new BusinessLibrary.Library.EmailAlertLibrary(System.Web.HttpContext.Current, session); return(View("~/Views/EmailAlerts/EmailAlertRegistration.cshtml", eal.GetEmailAlert(emailAlert))); }
// GET: EmailAlertRegistration public ActionResult Index() { Session session = Helpers.AuthenticationHelper.GetSession(System.Web.HttpContext.Current); BusinessLibrary.Library.EmailAlertLibrary eal = new BusinessLibrary.Library.EmailAlertLibrary(System.Web.HttpContext.Current, session); return(View("~/Views/EmailAlerts/EmailAlertRegistration.cshtml", eal.GetInitalSettings())); }
public JsonResult DeleteAlerts(string email) { Session session = Helpers.AuthenticationHelper.GetSession(System.Web.HttpContext.Current); BusinessLibrary.Library.EmailAlertLibrary eal = new BusinessLibrary.Library.EmailAlertLibrary(System.Web.HttpContext.Current, session); try { eal.DeleteAllAlerts(email); return(Json(new { StatusKey = "SUCCESS" })); } catch { return(Json(new { StatusKey = "ERROR" })); } }
public JsonResult SaveAlert(BusinessLibrary.ViewModels.EmailAlertViewModel emailAlert) { Session session = Helpers.AuthenticationHelper.GetSession(System.Web.HttpContext.Current); BusinessLibrary.Library.EmailAlertLibrary eal = new BusinessLibrary.Library.EmailAlertLibrary(System.Web.HttpContext.Current, session); try { eal.SaveEmailAlert(emailAlert); return(Json(new { StatusKey = "SUCCESS" })); } catch { return(Json(new { StatusKey = "ERROR" })); } }