コード例 #1
0
        public async Task <IActionResult> Delete(string id)
        {
            await _dynamicListRepository.DeleteAsync(id);

            _logger.Info("Deleted dynamic list {id}", id);
            return(Ok());
        }
コード例 #2
0
        public async Task DeleteByAppIdAsync(string appId)
        {
            var allLists = await _dynamicListRepository.GetAllAsync(a => a.AppId == appId);

            if (allLists != null && allLists.Any())
            {
                foreach (var list in allLists)
                {
                    await _dynamicListRepository.DeleteAsync(list.Id);
                }
            }
        }