Пример #1
0
 private void save()
 {
     //user.TypeId = "string";
     if (!userGroup.Validate())
     {
         return;
     }
     ShowBusyIndicator();
     if (actionType == ActionType.AddUserGroup)
     {
         userService.AddUserGroup((res, exp) => appController.BeginInvokeOnDispatcher(() =>
         {
             HideBusyIndicator();
             if (exp != null)
             {
                 appController.HandleException(exp);
             }
             else
             {
                 FinalizeAction();
             }
         }), userGroup);
     }
     else if (actionType == ActionType.ModifyUserGroup)
     {
         userService.UpdateUserGroup((res, exp) => appController.BeginInvokeOnDispatcher(() =>
         {
             HideBusyIndicator();
             if (exp != null)
             {
                 appController.HandleException(exp);
             }
             else
             {
                 FinalizeAction();
             }
         }), userGroup);
     }
 }