public async Task <IActionResult> Delete(string id) { await _dynamicListRepository.DeleteAsync(id); _logger.Info("Deleted dynamic list {id}", id); return(Ok()); }
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); } } }