public async Task Delete(string id) { var hfeaForm = await _hfeaRepository.GetItemAsync(id); if (hfeaForm == null) { throw new ResponsibleSystemUserFriendlyException($"Hfea with id = {id} not found", "Could not found the HFEA form, maybe it's already deleted."); } var rootId = hfeaForm.RootId; await _hfeaRepository.DeleteItemAsync(id); }