Beispiel #1
0
        public async Task CancelCheckoutAsync(int registryEntryId, int documentDescriptionId, string variant, int version)
        {
            var request = new CancelCheckoutRequest
            {
                JournalpostId = registryEntryId,
                DocumentId    = documentDescriptionId,
                Variant       = variant,
                Version       = version,
                Identity      = CreateEphorteIdentity()
            };

            using (var documentsService = CreateServiceClient())
            {
                await documentsService.CancelCheckoutAsync(request);
            }
        }
Beispiel #2
0
        public void CancelCheckout(int registryEntryId, int meetingDocumentId, int committeeHandlingDocumentId, int documentDescriptionId, string variant = "P", int version = -1)
        {
            var request = new CancelCheckoutRequest
            {
                JournalpostId               = registryEntryId,
                MeetingDocumentId           = meetingDocumentId,
                CommitteeHandlingDocumentId = committeeHandlingDocumentId,
                DocumentId = documentDescriptionId,
                Variant    = variant,
                Version    = version,
                Identity   = CreateEphorteIdentity()
            };

            using (var documentsService = CreateServiceClient())
            {
                documentsService.CancelCheckout(request);
            }
        }