public FileResult DownloadInvoice(Guid id)
        {
            var result = _orderRepository.DownloadInvoice(id);

            if (result.Result != null && result.Result.ByteCode != null)
            {
                string fileName = result.Result.Filename + ".pdf";
                return(File(result.Result.ByteCode, System.Net.Mime.MediaTypeNames.Application.Octet, fileName));
            }
            return(null);
        }