public async Task <IActionResult> RemoveMediaAsync(MediaDeleteOptions options) { var media = await _mediaService.GetMediaByIdsAsync(options.MediaIds.ToArray()); var objectIds = media.Select(e => e.ObjectId); var result = await _storage.RemoveAsync(objectIds); //await _eventPublisher.Publish(new WebAppEvent //{ // ObjectIds = objectIds //}); return(Ok(new { objectIds = objectIds })); }
public async Task RemoveMediaAsync(MediaDeleteOptions options) { await _media.RemoveMediaAsync(options.MediaIds.ToArray()); }