Пример #1
0
        public void DeallocateEntities(DeallocationExecutionRequest request)
        {
            var requests = new Collection <Entity>();

            // bookings
            CreateUpdateRequests(requests, request.Bookings);
            // customer
            CreateUpdateRequests(requests, request.Customers);
            // cases
            CreateUpdateRequests(requests, request.Cases);
            // assign
            if (requests.Count > 0)
            {
                crmService.BulkUpdate(requests);
            }
        }