public ActionResult AddUserAlert(AlertCreation alert) { var redirectUrl = new UrlHelper(Request.RequestContext).Action("Alerts", "Home", new { }); try { alertManager.AddUserAlert(User.Identity.GetUserId(), alert.AlertType, alert.Subject, alert.Web, alert.Mail, alert.App, alert.SubjectB, alert.Compare, alert.SubjectProperty, alert.Value); } catch (Exception) { return(Json(new { Url = redirectUrl, status = "Error" })); } return(Json(new { Url = redirectUrl, status = "OK" })); }