public ActionResult TriggerDelete(string triggerId) { try { var idInt = Convert.ToInt32(triggerId); ContextService.DeleteTrigger(idInt, User.Identity.Name); return(Json(new { data = "1", message = "Deleted trigger" }, JsonRequestBehavior.AllowGet)); } catch (Exception e) { return(Json(new { data = "-1", message = e.Message }, JsonRequestBehavior.AllowGet)); } }