public static async Task DeleteAssetByName(this ISquidexAttachmentClient that, string application, string fileName)
        {
            var item = await that.GetAssetByNameOrThrow(application, fileName);

            await that.DeleteAsset(application, item.Id);
        }
        public static async Task <AttachmentContent> UpdateAssetContentByName(this ISquidexAttachmentClient that, string application, string fileName, string mimeType, Stream stream)
        {
            var item = await that.GetAssetByNameOrThrow(application, fileName);

            return(await that.UpdateAssetById(application, item.Id, fileName, mimeType, stream));
        }