public async Task <IActionResult> DeployTemplate([FromBody] DeploymentConfiguration model)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            Template template = Templates.Load(TemplateManifestFile).FirstOrDefault(
                deploymentTemplate => deploymentTemplate.Id == model.TemplateId
                );

            if (template == null)
            {
                return(NotFound(new
                {
                    ErrorCode = "TemplateNotFound",
                    Message = $"Template {model.TemplateId} not found."
                }));
            }

            string deploymentId = HttpContext.TraceIdentifier;
            bool   started      = await _deployer.DeployAsync(deploymentId, template.ImageName, model.Parameters);

            return(Ok(new
            {
                Action = "Deploy",
                Started = started,
                DeploymentId = deploymentId
            }));
        }