public IActionResult ProcessFile()
        {
            var input = new FileInputModel();


            using (System.IO.StreamReader reader = new System.IO.StreamReader(Request.Form.Files[0].OpenReadStream()))
            {
                var content = reader.ReadToEnd();

                // Deserialzation

                // Taking string of Json, taking out key value maps and binding it to a model we defined
                try
                {
                    input = JsonConvert.DeserializeObject<FileInputModel>(content);

                }
                catch (Exception e)
                {
                    Console.Write(e.Message);
                }
                return
                        Json(new { companyIds = input.Companies, template = input.Axp, environment = input.Environment });
            }
        }
        public async void SendAxpTemplate(List<string> companyIDs, string template, string environment)
        {

            var input = new FileInputModel();
            var responses = new StringBuilder();


            for (var i = 0; i < companyIDs.Count(); i++) // Might need to change count because its counting strings and it may be skipping a company ID
            {
                Console.Write(string.Format("Processing company {0} of {1}", i, companyIDs.Count()));
                responses.AppendLine(template.Replace("[COMPANYID]", companyIDs[i]));
                responses.Clear();
                responses.AppendLine(template.Replace("[COMPANYID]", companyIDs[i]));

                // send the template with new data to post????
                Console.Write(responses);
                await CallController(environment, template, responses);

            }
            await CallController(environment, template, responses);





        }
        public IActionResult SendAxpTemplate(string companyIds, string axpTemplate, string environmentLevel)
        {
            var input = new FileInputModel();
            // Send Axp Template
            SendTemplate template = new SendTemplate();
            ParseHelper parser = new ParseHelper();
            var CompanyIDTest = parser.SplitCompanyIDs(companyIds);


            template.SendAxpTemplate(CompanyIDTest, axpTemplate, environmentLevel);
            return Json(new { success = true });
        }
        // This method is purley for sending the template to the specified environment
        public async Task<string> SendAxpTemplate(string template, string environment)
        {

            var input = new FileInputModel();
            var responses = new StringBuilder();
            return await CallController(environment, template, responses);





        }