{_localizer["Common_BatchDelete_Failed"].Value}
"; var batchResult = new BatchResponseVm(batchErrorHeader) { Success = true }; foreach (var id in ids) { var item = await _dogService.GetAsync(id); if (item != null) { //await _customerService.ResetTypeAsync(item.Id); //Spezial zurücksetzen wenn nötig var specialCount = 0; if (specialCount == 0) { batchResult.BatchResponseList.Add(new BatchResponseItemVm() { Id = item.Id.ToString(), Name = item.Name, Success = true, NotFound = false, ErrorMessage = "" }); if (forceDelete) { var postingPath = FileServiceHelper.GetDogPath(item.Id); await FileService.ClearDirectoryAsync(FileServiceHelper.DocumentContainer, postingPath); await RemoveThumbnail(FileServiceHelper.DocumentContainer, item.Photo, 400); await RemoveThumbnail(FileServiceHelper.DocumentContainer, item.Photo, 200); await RemoveThumbnail(FileServiceHelper.DocumentContainer, item.Photo, 100); _dogService.Remove(item); } else { item.Deleted = true; item.UpdatedAt = DateTimeOffset.UtcNow; } } else { if (specialCount != 0) { batchResult.Success = false; batchResult.BatchResponseList.Add(new BatchResponseItemVm() { Id = id.ToString(), Name = item.Name, Success = false, NotFound = false, ErrorMessage = string.Format(_localizer["Common_BatchDelete_InUse"], $"{item.Name}", $"{specialCount}") + "