public ContentResult OrderConfirmationPath(string companyId, string orderConfirmation)
        {
            LACDocumentServiceClient client = new LACDocumentServiceClient();

            client.Open();

            CallContext context = new CallContext();

            context.Company      = "73";
            context.MessageId    = Guid.NewGuid().ToString();
            context.LogonAsUser  = @"RIWAL01\Administrator";
            context.Language     = "en-gb";
            context.PartitionKey = "initial";

            string filePath = "";

            try
            {
                filePath = client.getOrderConfirmation(context, orderConfirmation);
            }
            catch (Exception e)
            {
                client.Abort();
            }

            client.Close();
            return(Content(filePath));
        }
        // GET /Download/InvoicePath
        public ContentResult InvoicePath(string companyid, string invoiceid, string invoiceType)
        {
            LACDocumentServiceClient client = new LACDocumentServiceClient();

            client.Open();

            CallContext context = new CallContext();

            context.Company      = "73";
            context.MessageId    = Guid.NewGuid().ToString();
            context.LogonAsUser  = @"RIWAL01\Administrator";
            context.Language     = "en-gb";
            context.PartitionKey = "initial";

            string filePath = "";

            try
            {
                String InvoicePath = client.getSalesInvoice(context, invoiceid);
            }
            catch (Exception e)
            {
                client.Abort();
            }

            client.Close();
            return(Content(filePath));
        }