Exemplo n.º 1
0
 public static void AddNoteAndSaveChanges(IOrderGroup orderGroup, string noteTitle,
                                          string noteMessage)
 {
     orderGroup.AddNote(noteTitle, noteMessage);
 }
Exemplo n.º 2
0
        public static void AddNoteAndSaveChanges(IOrderGroup orderGroup, IPayment payment, string transactionType, string noteMessage)
        {
            var noteTitle = $"{payment.PaymentMethodName} {transactionType.ToLower()}";

            orderGroup.AddNote(noteTitle, $"Payment {transactionType.ToLower()}: {noteMessage}");
        }
Exemplo n.º 3
0
        protected void AddNoteAndSaveChanges(IOrderGroup orderGroup, string transactionType, string noteMessage)
        {
            var noteTitle = $"{PaymentMethod.PaymentMethod.FirstOrDefault()?.Name} {transactionType.ToLower()}";

            orderGroup.AddNote(noteTitle, $"Payment {transactionType.ToLower()}: {noteMessage}");
        }