public static void AddNoteAndSaveChanges(IOrderGroup orderGroup, string noteTitle, string noteMessage) { orderGroup.AddNote(noteTitle, noteMessage); }
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}"); }
protected void AddNoteAndSaveChanges(IOrderGroup orderGroup, string transactionType, string noteMessage) { var noteTitle = $"{PaymentMethod.PaymentMethod.FirstOrDefault()?.Name} {transactionType.ToLower()}"; orderGroup.AddNote(noteTitle, $"Payment {transactionType.ToLower()}: {noteMessage}"); }