void ParseBottomLine(InvoiceLine line) { if (line.TransCode.ToLower() == "y") Payments.Add(new Payment { Amount = line.Price, PaymentType = PaymentTypeController.PaymentTypes.Where(x=> x.Id == line.Description).FirstOrDefault(), }); else Console.WriteLine(line); }