public async Task <ListContainersResponse[]> GetListContainers(ListContainersCommand command) { var response = await _client.ExecuteAsync(new ListContainersRequest { All = command.All, Limit = command.Limit, Size = command.Size, Filters = command.Filters }); return(await response.GetContentOrThrow <ListContainersResponse[]>()); }
public async Task <ActionResult <ListContainersResponseDto[]> > GetListContainers([FromQuery] ListContainersCommand command) { return(await Mediator.Send(command)); }