public IEnumerable <ShippingViewModel> Get() { var shippings = _repository.Get().ToViewModel(); foreach (var shipping in shippings) { shipping.Order = _repository.AssociatedOrder(shipping.OrderId).ToViewModel(); shipping.Order.ShippingAddress = _repository.ShippingAddress(shipping.Order.CustomerId).ToViewModel(); } return(shippings); }