Exemple #1
0
        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)));
        }
Exemple #2
0
        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" }));
            }
        }