예제 #1
0
 public static void NotifyOrderIsBeingProcessed(CustomerBase customer, ProductBase product)
 {
     NotifyOrderChangedState(customer, product, "Processing");
 }
예제 #2
0
 public void Update(CustomerBase obj)
 {
     throw new NotSupportedException();
 }
예제 #3
0
 public static void NotifyOrderChangedState(CustomerBase customer, ProductBase product, string state)
 {
     Notify(customer.Email, string.Format(OrderChangedStateMessageFormat, product.Id, state));
 }
예제 #4
0
 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);
 }