public async Task <ActionResult <List <Container> > > ListContainers([FromBody] string tasksGroupName) { try { return(await _containerService.ListTasksFromGroupAsync(tasksGroupName)); } catch (InexistentCluster ex) { return(StatusCode(StatusCodes.Status500InternalServerError, ex.Message)); } catch (AmazonECSException ex) { return(StatusCode(StatusCodes.Status500InternalServerError, ex.Message)); } }