public JsonResult Conditions_Delete(IEnumerable <DeleteRequest> requests) { GeneralResponse response = new GeneralResponse(); #region Access Check bool hasPermission = GetEmployee().IsGuaranteed("Condition_Delete"); if (!hasPermission) { response.ErrorMessages.Add("AccessDenied"); return(Json(response, JsonRequestBehavior.AllowGet)); } #endregion response = _conditionService.DeleteConditions(requests); return(Json(response, JsonRequestBehavior.AllowGet)); }