public async Task <ActionResult> DownloadFileAsync(string id, DateTime?filterDate)
        {
            var file = (await _downloadsService.GetListAsync(filterDate ?? DateTime.Today, User)).FirstOrDefault(x => x.Tag == id);

            if (file != null)
            {
                using (var c = IocConfig.CreateHttpClient())
                {
                    var requestMessage = await _httpClientHelper.CreateHttpRequestMessageAsync(HttpMethod.Get, file.Url, User);

                    var response = (await c.SendAsync(requestMessage)).EnsureSuccessStatusCode();
                    return(new FileStreamResult(await response.Content.ReadAsStreamAsync(), response.Content.Headers.ContentType.MediaType)
                    {
                        FileDownloadName = response.Content.Headers.ContentDisposition.FileName.RemoveSubstring("\"")
                    });
                }
            }
            else
            {
                return(HttpNotFound());
            }
        }