예제 #1
0
 public async Task<IActionResult> Remove(string serviceName)
 {
     var website = await this.client.GetWebsite(serviceName);
     if(website == null) 
         return this.NotFound();
         
     var result = await DockerService.RemoveDockerContainer(website.Name);
     var message = string.Join("\n", result.Select(p => (p.IsError ? "[ERROR]: " : "[Message]: ") + p.Message));
     return this.Ok(message);
 }