public async Task <ActionResult> DeleteImages(CloudImageViewModel[] images) { try { if (images == null) { logger.LogError($"Images object sent from client is null"); return(BadRequest("Images object is null")); } await storageService.DeleteImagesRange(images).ConfigureAwait(false); return(Ok()); } catch (Exception ex) { logger.LogError($"Something went wrong inside DeleteImages action: {ex.Message}"); return(StatusCode(500, "Internal server error")); } }