public async Task <IActionResult> Delete(string id) { var options = await optionsService.GetByIdAsync(id); if (options == null) { return(NotFound()); } await itemService.DeleteOptionsFromAllAsync(id); await optionService.DeleteParentOptionsAsync(id); await optionsService.DeleteAsync(id); return(NoContent()); }