private static List<FlatServiceinvoiceLine> FlattenLines(IEnumerable<ServiceInvoiceLine> serviceInvoiceLines)
        {
            var flattenedLines = new List<FlatServiceinvoiceLine>();

            foreach (ServiceInvoiceLine line in serviceInvoiceLines)
            {
                var flatLine = new FlatServiceinvoiceLine
                                   {
                                       RowId = line.RowID,
                                       Description = line.Description,
                                       AccountUid = line.Account.UID,
                                       Total = line.Total,
                                       TaxUid = line.TaxCode.UID,
                                       RowVersion = line.RowVersion
                                   };
                if (line.Job != null)
                {
                    flatLine.JobUid = line.Job.UID;
                }
                flattenedLines.Add(flatLine);
            }

            return flattenedLines;
        }
        private static List <FlatServiceinvoiceLine> FlattenLines(IEnumerable <ServiceInvoiceLine> serviceInvoiceLines)
        {
            var flattenedLines = new List <FlatServiceinvoiceLine>();

            foreach (ServiceInvoiceLine line in serviceInvoiceLines)
            {
                var flatLine = new FlatServiceinvoiceLine
                {
                    RowId       = line.RowID,
                    Description = line.Description,
                    AccountUid  = line.Account.UID,
                    Total       = line.Total,
                    TaxUid      = line.TaxCode.UID,
                    RowVersion  = line.RowVersion
                };
                if (line.Job != null)
                {
                    flatLine.JobUid = line.Job.UID;
                }
                flattenedLines.Add(flatLine);
            }

            return(flattenedLines);
        }