public JsonResult ClearAlerts(List <Int32> alerts) { String msg = ""; foreach (var alertId in alerts) { msg = dashboardData.DeleteAlertData(alertId); } return(Json(msg, JsonRequestBehavior.AllowGet)); }