/// <inheritdoc />
        public async Task AddImageResourceAsync(string name, byte[] data)
        {
            var response = await _service.AddImageResourceAsync(new ImageResourceModel(name, data));

            if (response != null)
            {
                throw new Exception(response.ErrorMessage);
            }
        }