Model data
Istakeholder interface
public class Customer : IStakeholder
{
/// <summary>
/// The ID of the customer
/// </summary>
public int Id { get; set; }
/// <summary>
/// The name of the customer
/// </summary>
public string Name { get; set; }
/// <summary>
/// The phone number
/// </summary>
public string PhNr { get; set; }
/// <summary>
/// The VAT number
/// can be null
/// </summary>
public string VatNr { get; set; }
/// <summary>
/// The country where the customer is located
/// </summary>
public CountryCatEnum CountryCat { get; set; }
/// <summary>
/// A list of payments made by the customer
/// </summary>
public List<IPayments> Payments { get; set; }
}
Supplier class (customer is basicly the same)
public class Supplier : IStakeholder
{
/// <summary>
/// The name of the supplier
/// </summary>
/// <returns></returns>
public String Name { get; set; }
/// <summary>
/// The ID of the supplier
/// </summary>
public int Id { get; set; }
/// <summary>
/// The telephone number of the supplier
/// </summary>
public string PhNr { get; set; }
/// <summary>
/// The country
/// </summary>
public CountryCatEnum CountryCat { get; set; }
/// <summary>
/// The VAT number of the supplier
/// </summary>
public string VatNr { get; set; }
/// <summary>
/// The standard bank account number to pay to
/// </summary>
public string BankAcc { get; set; }
/// <summary>
/// List of payments made to this supplier
/// </summary>
public List<IPayments> Payments { get; set; }
}