Exemple #1
0
        public async Task DeleteByAppIdAsync(string appId)
        {
            var allCharts = await _chartRepository.GetAllAsync(a => a.AppId == appId);

            if (allCharts != null && allCharts.Any())
            {
                foreach (var chart in allCharts)
                {
                    await _chartRepository.DeleteAsync(chart.Id);
                }
            }
        }
Exemple #2
0
        public async Task <IActionResult> Delete(string id)
        {
            await _chartRepository.DeleteAsync(id);

            return(Ok());
        }