コード例 #1
0
ファイル: NotificationHelper.cs プロジェクト: DVDPT/ASI
 public static void NotifyOrderIsBeingProcessed(CustomerBase customer, ProductBase product)
 {
     NotifyOrderChangedState(customer, product, "Processing");
 }
コード例 #2
0
 public void Update(CustomerBase obj)
 {
     throw new NotSupportedException();
 }
コード例 #3
0
ファイル: NotificationHelper.cs プロジェクト: DVDPT/ASI
 public static void NotifyOrderChangedState(CustomerBase customer, ProductBase product, string state)
 {
     Notify(customer.Email, string.Format(OrderChangedStateMessageFormat, product.Id, state));
 }
コード例 #4
0
ファイル: NotificationHelper.cs プロジェクト: DVDPT/ASI
 public static void NotifyOrderCantBeHeld(CustomerBase c, ProductBase product)
 {
     Notify(c.Email, string.Format(OrderCantBeHeldMessageFormat, product.Id));
 }
コード例 #5
0
 public void Update(CustomerBase obj)
 {
 }
コード例 #6
0
 public void Delete(CustomerBase obj)
 {
     _ctx.Customer.Remove((Customer)obj);
 }
コード例 #7
0
 public void Create(CustomerBase obj)
 {
     _ctx.Customer.Add((Customer)obj);
 }