public void Output(GetTableDetailsOutput output)
        {
            var tasks = new List <TableTaskModel>();

            foreach (var task in output.Table.GetTasks())
            {
                tasks.Add(new TableTaskModel(
                              task.Id.ToGuid(),
                              task.Text.ToString(),
                              (int)task.State));
            }

            var tableDetails = new TableDetailsModel(
                output.Table.Name.ToString(),
                output.Table.Id.ToGuid(),
                (int)output.Table.State,
                tasks);

            var res = new GetTableDetailsResponse(tableDetails);

            ViewModel = new OkObjectResult(res);
        }
        private void BuildOutput(ITable table)
        {
            var res = new GetTableDetailsOutput(table);

            outputPort.Output(res);
        }