Exemple #1
0
        public override async Task DeleteAsync(EntityDto <int> input)
        {
            var document = await GetEntityByIdAsync(input.Id);

            if (document != null)
            {
                await _documentRepository.DeleteAsync(input.Id);

                if (document.ProcessId.HasValue)
                {
                    await _runtime.DeleteInstanceAsync(document.ProcessId.Value);
                }
            }
        }