public IActionResult CreateCustom([FromForm] Dictionary <string, string> dict, [FromForm] String templateName, [FromForm] String instanceName)
        {
            String tempPath   = Path.Combine(Directory.GetCurrentDirectory(), @"data\templates\" + templateName);
            String fileString = System.IO.File.ReadAllText(tempPath);

            string finalComposeString = ComposerNew.ReplaceParams(fileString, dict);
            var    filename           = ComposeFileOperationsNew.WriteFileToReadyFolder(finalComposeString, templateName, instanceName);

            ComposerNew.StartService(filename);


            return(View("RunComposeFile"));
        }
        public IActionResult DebugStart([FromQuery] string FileName)
        {
            try
            {
                string result = ComposerNew.StartService(FileName);
                return(Ok(result));
            }
            catch (Exception e)
            {
                Program.logger.Error("ERR_NO_SUCH_COMPOSE_FILE_FOUND: " + FileName);
                Program.logger.Error(e.Message);

                return(NotFound("ERR_NO_SUCH_COMPOSE_FILE_FOUND: " + FileName));
            }
        }
        public IActionResult RunComposeFile([FromQuery] string cName)
        {
            try
            {
                string result = ComposerNew.StartService(cName);
                ViewData["status"] = result;
                return(View());
            }
            catch (Exception e)
            {
                Program.logger.Error("ERR_NO_SUCH_COMPOSE_FILE_FOUND: " + cName);
                Program.logger.Error(e.Message);

                return(NotFound("ERR_NO_SUCH_COMPOSE_FILE_FOUND: " + cName));
            }
        }