public static PaymentState Create(int id, string caption, string color)
        {
            PaymentState psi = PaymentState.Create();

            psi.Id      = id;
            psi.Caption = caption;
            psi.Color   = color;
            return(psi);
        }
 private void CreatePaymentStates()
 {
     PaymentStates.Add(PaymentState.Create(id: 0, caption: "Unpaid", color: "Tomato"));
     PaymentStates.Add(PaymentState.Create(id: 1, caption: "Paid", color: "LightGreen"));
 }