public CfLabelQueryResult QueryLabels(CfQuery queryLabels)
        {
            var resource = BaseRequest <ResourceList>(HttpMethod.Get, new Query(queryLabels),
                                                      new CallfireRestRoute <Label>());

            return(LabelQueryResultMapper.FromSoapLabelQueryResult(
                       new LabelQueryResult
            {
                TotalResults = resource.TotalResults,
                Label = resource.Resource.Select(r => (r as Label)).ToArray()
            }));
        }
 public CfLabelQueryResult QueryLabels(CfQuery queryLabels)
 {
     return(LabelQueryResultMapper.FromSoapLabelQueryResult(
                LabelService.QueryLabels(new Query(queryLabels.MaxResults, queryLabels.FirstResult))));
 }