public async Task DeleteAllByAppIdAsync(string appId)
        {
            var allStandards = await _standardRepository.GetAllAsync(a => a.AppId == appId);

            if (allStandards != null && allStandards.Any())
            {
                foreach (var standard in allStandards)
                {
                    await _standardRepository.DeleteAsync(standard.Id);
                }
            }
        }
Пример #2
0
        public async Task <IActionResult> Delete(string id)
        {
            await _standardRepository.DeleteAsync(id);

            return(Ok());
        }