示例#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));
 }
 public void Update(CustomerBase obj)
 {
 }
 public void Delete(CustomerBase obj)
 {
     _ctx.Customer.Remove((Customer)obj);
 }
 public void Create(CustomerBase obj)
 {
     _ctx.Customer.Add((Customer)obj);
 }