public OrderListModel(IEnumerable <Order> orders, string hostName)
        {
            _self  = Link.Create(this, hostName);
            _items = orders.Select(task => OrderListItemModel.Create(task, hostName));

            if (!_items.Any())
            {
                //construct an empty result set
                _items = new List <OrderListItemModel>().Select(i => i);
            }
        }
 public OrderListModel(IEnumerable <Order> orders, string hostName)
 {
     _self  = Link.Create(this, hostName);
     _items = orders.Select(task => OrderListItemModel.Create(task, hostName));
 }