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