public void AddDebitor(string Name) { Debitor debitor = new Debitor(Name); debitors.Add(debitor); transactions.Add(debitor.GetID(), new List <Transaction>()); }
public Debitor GetDebitorByID(int id) { var debitorByID = new Debitor(""); foreach (var debitor in debitors) { if (debitor.GetID() == id) { debitorByID = debitor; } else { Console.WriteLine("ID was not found in " + nameof(GetDebitorByID)); } } return(debitorByID); }
public void AddDebitor(Debitor debitor) { dp.AddDebitor(debitor.Name); }