public async Task <IActionResult> SendWorkMessage(FileDownloadAction model)
        {
            var batchStart = DateTime.UtcNow;
            //for (int i = 0; i < model.MessageCount; i++)
            //{
            //    await _producer.SendWorkMessage(
            //        new WorkMessage
            //        {
            //            Started = batchStart,
            //            Url = "http://localhost/barcode.png",
            //            LastInBatch = i == model.MessageCount
            //        });
            //}

            var tasks = Enumerable.Range(1, model.MessageCount).Select(async i => await _producer.SendWorkMessage(
                                                                           new WorkMessage
            {
                Started     = batchStart,
                Url         = "http://localhost/barcode.png",
                LastInBatch = i == model.MessageCount
            }));

            Task.WaitAll(tasks.ToArray());

            return(Ok());
        }