public void Save_RolePermission(string json) { try { KeyValuePair <string, string>[] selectIDs = JSON.Deserialize <KeyValuePair <string, string>[]>(json); List <String> list = new List <string>(); foreach (KeyValuePair <string, string> row in selectIDs) { list.Add(row.Key); } SystemRoleWrapper.PatchAssignRolePermissions(SystemRoleWrapper.FindById(RoleID), list); } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message:" + ex.Message; } }