/// <summary>
 /// UpdatingData method implementation
 /// </summary>
 protected void UpdatingData(object sender, ObjectDataSourceMethodEventArgs e)
 {
     if (!CheckModifyAccess())
     {
         e.Cancel = true;
         SPUtility.HandleAccessDenied(new UnauthorizedAccessException("You are not authorized to call this operation."));
     }
     foreach (System.Collections.DictionaryEntry prm in e.InputParameters)
     {
         GlobalParameterWrapper wr = prm.Value as GlobalParameterWrapper;
         if (wr != null)
         {
             wr.ServiceApplication = ServiceApplication;
         }
     }
 }
 /// <summary>
 /// Update method implementation
 /// </summary>
 public static void Update(GlobalParameterWrapper values, GlobalParameterWrapper __values)
 {
     __values.ServiceApplication.SetGlobalParameter(new GlobalParameter(__values.CacheDuration, __values.ClaimsDisplayMode, __values.ClaimDisplayName, __values.ClaimIdentityMode, __values.ClaimIdentity, __values.ClaimProviderName, __values.ClaimRoleMode, __values.ClaimRole, __values.ClaimsMode, __values.PeoplePickerDisplayMode, __values.PeoplePickerImages, __values.SearchByDisplayName, __values.SearchByMail, __values.ShowSystemNodes, __values.SmoothRequestor, __values.TrustedLoginProviderName),
                                                    new GlobalParameter(values.CacheDuration, values.ClaimsDisplayMode, values.ClaimDisplayName, values.ClaimIdentityMode, values.ClaimIdentity, values.ClaimProviderName, values.ClaimRoleMode, values.ClaimRole, values.ClaimsMode, values.PeoplePickerDisplayMode, values.PeoplePickerImages, values.SearchByDisplayName, values.SearchByMail, values.ShowSystemNodes, values.SmoothRequestor, values.TrustedLoginProviderName));
 }