public Task DeleteDialogConditionAsync(string dialogId)
        {
            var tasks = new List <Task>
            {
                _conditionsRepository.DeleteDialogConditionAsync(dialogId),
                _clientDialogsRepository.SetDialogConditionTypeAsync(dialogId, null)
            };

            return(Task.WhenAll(tasks));
        }
Пример #2
0
        public Task DeleteDialogAsync(string dialogId)
        {
            var tasks = new List <Task>
            {
                _dialogsRepository.DeleteDialogAsync(dialogId),
                _dialogConditionsRepository.DeleteDialogConditionAsync(dialogId)
            };

            return(Task.WhenAll(tasks));
        }