예제 #1
0
 public static void AddNoteAndSaveChanges(IOrderGroup orderGroup, string noteTitle,
                                          string noteMessage)
 {
     orderGroup.AddNote(noteTitle, noteMessage);
 }
예제 #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}");
        }
예제 #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}");
        }