using (var svc = new AdministrationService.AdministrationClient())
{
var request = new AdministrationService.ManagementGroupRequestOfAccountingPeriodFilter();
request.Token = "Token";
request.ManagementGroup = "Management group";
var accountingPeriodFilter = new AdministrationService.AccountingPeriodFilter();
accountingPeriodFilter.Branch_PartnerRSN = new Guid("3b0f303d-78f8-492a-b41d-a4dc8f59ec5e");;
accountingPeriodFilter.PageNumber = 1;
accountingPeriodFilter.PageSize = 20;
accountingPeriodFilter.ReturnAllRecords = true;
request.Value = accountingPeriodFilter;
AdministrationService.ResultOfPagedCollectionOfstring result = svc.SelectAccountingPeriodByBranch(request);
if (result.FaultCode == 0)
{
}
else
{
throw new Exception(result.FaultDescription);
}
}