private DeleteProviderGroupRequest CreateRequest()
 {
     var request = new DeleteProviderGroupRequest
     {
         ProviderGroupId = _existingProviderGroupId
     };
     return request;
 }
Exemplo n.º 2
0
        private void DeleteRecords()
        {
            try
            {
                foreach (var id in _viewModel.SelectedIds)
                {
                    var request = new DeleteProviderGroupRequest()
                    {
                        ProviderGroupId = int.Parse(id.ToString(), CultureInfo.InvariantCulture)
                    };

                    ProcessRequest<DeleteProviderGroupResponse>(request);
                }
                _viewModel.SelectedIds = new List<object>();
                _viewModel.SetSuccessMessage("Group Successfully Deleted");
            }
            catch (Exception ex)
            {
                _viewModel.SetErrorMessage(ex.Message);
            }
        }