namespace LaaProductionWeb.Services.Models { using System; using System.Collections.Generic; using System.Linq; public class PalletsBatchModel { public string ClientName { get; set; } public int OrderNr { get; set; } public int ProductionOrderNr { get; set; } public int TotlalItemsCount { get; set; } public string AdditionalText { get; set; } public int ItemsCount => this.Positions.Sum(x => x.ItemsCount); public IEnumerable Items { get; set; } = Array.Empty(); public IEnumerable Positions { get; set; } = Array.Empty(); } }