Exemplo n.º 1
0
        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)));
        }
Exemplo n.º 2
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)));
        }
Exemplo n.º 3
0
        // 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()));
        }
Exemplo n.º 4
0
        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" }));
            }
        }
Exemplo n.º 5
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" }));
            }
        }