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))); }
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" })); } }